Package ndg :: Package xacml :: Package core :: Module attribute :: Class Attribute
[hide private]

Class Attribute

source code

   object --+    
            |    
XacmlCoreBase --+
                |
               Attribute
Known Subclasses:

XACML Attribute type

Instance Methods [hide private]
 
__init__(self)
Element local name check makes this a virtual method
source code
basestring / NoneType
_get_dataType(self)
Get data type
source code
 
_set_dataType(self, value)
Set data type
source code
dict
__getstate__(self)
Enable pickling
source code

Inherited from XacmlCoreBase (private): _getXmlns, _setXmlns

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

Class Variables [hide private]
NoneType but implement as string in derived classes ELEMENT_LOCAL_NAME = 'Attribute'
XML element local name for the given type
string ATTRIBUTE_VALUE_ELEMENT_LOCAL_NAME = 'AttributeValue'
XML local name for attribute value child element
string DATA_TYPE_ATTRIB_NAME = 'DataType'
XML attribute name for data type
string ATTRIBUTE_ID_ATTRIB_NAME = 'AttributeId'
attribute ID XML attribute name
string ISSUER_ATTRIB_NAME = 'Issuer'
issuer XML attribute name

Inherited from XacmlCoreBase: XACML_1_0_NS_PREFIX, XACML_2_0_NS_PREFIX, XMLNS

Instance Variables [hide private]
basestring / NoneType __attributeId
identifier for attribute
ndg.xacml.utils.TypedList __attributeValues
list of attribute values
basestring / NoneType __dataType
data type for this attribute
basestring / NoneType __issuer
issuer id of this attribute
Properties [hide private]
ndg.xacml.utils.TypedList attributeValues
Get attribute values
  dataType
Attribute data type
basestring / NoneType attributeId
Get Attribute Id
basestring / NoneType issuer
Get Issuer

Inherited from XacmlCoreBase: elem, isValidXmlns, xmlns

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Element local name check makes this a virtual method

Raises:
  • NotImplementedError - derived classes must set ELEMENT_LOCAL_NAME to a string
Overrides: object.__init__
(inherited documentation)

_get_dataType(self)

source code 

Get data type

Returns: basestring / NoneType
attribute data type

_set_dataType(self, value)

source code 

Set data type

Parameters:
  • value (basestring) - attribute data type
Raises:
  • TypeError - incorrect input type

__getstate__(self)

source code 

Enable pickling

Returns: dict
class instance attributes dictionary
Overrides: XacmlCoreBase.__getstate__

Property Details [hide private]

attributeValues

Get attribute values

Get Method:
unreachable.attributeValues(self) - Get attribute values
Set Method:
unreachable.attributeValues(self, value) - Set attribute values
Type:
ndg.xacml.utils.TypedList

dataType

Attribute data type

Get Method:
_get_dataType(self) - Get data type
Set Method:
_set_dataType(self, value) - Set data type

attributeId

Get Attribute Id

Get Method:
unreachable.attributeId(self) - Get Attribute Id
Set Method:
unreachable.attributeId(self, value) - Set Attribute Id
Type:
basestring / NoneType

issuer

Get Issuer

Get Method:
unreachable.issuer(self) - Get Issuer
Set Method:
unreachable.issuer(self, value) - Set Issuer
Type:
basestring / NoneType