Package ndg :: Package saml :: Package saml2 :: Module core :: Class XSStringAttributeValue
[hide private]

Class XSStringAttributeValue

source code


XML XS:String Attribute Value type

Instance Methods [hide private]
 
__init__(self, **kw)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
dict
__getstate__(self)
Enable pickling
source code
string
_getValue(self)
Set value of XS string
source code
 
_setValue(self, value)
Set value of XS string
source code

Inherited from common.SAMLObject: __setstate__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from common.SAMLObject: fromXML, toXML

Class Variables [hide private]
string TYPE_LOCAL_NAME = 'string'
Local name of the XSI type
ndg.saml.common.xml.QName TYPE_NAME = QName(SAMLConstants.XSD_NS, TYPE_LOCAL_NAME, SAMLC...
QName of the XSI type
  DEFAULT_FORMAT = 'http://www.w3.org/2001/XMLSchema#string'

Inherited from AttributeValue: DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME

Instance Variables [hide private]
basestring __value
value of this attribute
Properties [hide private]
  value
string value

Inherited from common.SAMLObject: qname

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • kw (dict) - keywords for setting attributes of parent class
Overrides: object.__init__

__getstate__(self)

source code 

Enable pickling

Returns: dict
object's attribute dictionary
Overrides: common.SAMLObject.__getstate__

_getValue(self)

source code 

Set value of XS string

Returns: string
value of string to assign

_setValue(self, value)

source code 

Set value of XS string

Parameters:
  • value (string) - value
Raises:
  • TypeError - invalid input value type

Class Variable Details [hide private]

TYPE_NAME

QName of the XSI type
Type:
ndg.saml.common.xml.QName
Value:
QName(SAMLConstants.XSD_NS, TYPE_LOCAL_NAME, SAMLConstants.XSD_PREFIX)

Property Details [hide private]

value

string value

Get Method:
_getValue(self) - Set value of XS string
Set Method:
_setValue(self, value) - Set value of XS string