Package ndg :: Package xacml :: Package parsers :: Package etree :: Module context :: Class AttributeElementTree
[hide private]

Class AttributeElementTree

source code

          object --+        
                   |        
  core.XacmlCoreBase --+    
                       |    
core.attribute.Attribute --+
                           |
                          AttributeElementTree

ElementTree based parser for XACML Attribute element

Instance Methods [hide private]

Inherited from core.attribute.Attribute: __getstate__, __init__

Inherited from core.XacmlCoreBase (private): _getXmlns, _setXmlns

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

Class Methods [hide private]
ElementTree.Element
toXML(cls, attribute)
Create an XML representation of the input XACML Attribute object
source code
ndg.xacml.core.attribute.Attribute
fromXML(cls, elem)
Parse an ElementTree XACML Attribute element into a Attribute object
source code
Class Variables [hide private]
  attributeValueClassFactory = AttributeValueClassFactory()

Inherited from core.attribute.Attribute: ATTRIBUTE_ID_ATTRIB_NAME, ATTRIBUTE_VALUE_ELEMENT_LOCAL_NAME, DATA_TYPE_ATTRIB_NAME, ELEMENT_LOCAL_NAME, ISSUER_ATTRIB_NAME

Inherited from core.XacmlCoreBase: XACML_1_0_NS_PREFIX, XACML_2_0_NS_PREFIX, XMLNS

Properties [hide private]

Inherited from core.attribute.Attribute: attributeId, attributeValues, dataType, issuer

Inherited from core.XacmlCoreBase: elem, isValidXmlns, xmlns

Inherited from object: __class__

Method Details [hide private]

toXML(cls, attribute)
Class Method

source code 

Create an XML representation of the input XACML Attribute object

Parameters:
  • attribute (ndg.xacml.core.attribute.Attribute) - XACML attribute object
Returns: ElementTree.Element
ElementTree element containing the attribute

fromXML(cls, elem)
Class Method

source code 

Parse an ElementTree XACML Attribute element into a Attribute object

Parameters:
  • elem (ElementTree.Element) - ElementTree element containing the attribute
Returns: ndg.xacml.core.attribute.Attribute
Attribute object