- Timestamp:
- 28/06/10 13:54:57 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/attributevaluereader.py
r7087 r7109 19 19 class AttributeValueReader(ExpressionReader): 20 20 '''ElementTree based XACML Expression type parser 21 22 @cvar TYPE: XACML class type that this reader will read values into 23 @type TYPE: abc.ABCMeta 24 25 @cvar FACTORY: factory function for returning an Attribute value type for a 26 given XACML Attribute value URI 27 @type FACTORY: ndg.xacml.core.attributevalue.AttributeValueClassFactory 21 28 ''' 22 29 TYPE = AttributeValue … … 27 34 _parseExtension since AttributeValue class is virtual. A sub-type can 28 35 be instantiated only once the data type attribute is parsed 36 37 @param obj: input object to parse 38 @type obj: ElementTree Element, or stream object 39 @return: new XACML attribute value instance 40 @rtype: ndg.xacml.core.attributevalue.AttributeValue derived type 41 @raise XMLParseError: error reading element 29 42 """ 30 43 elem = super(AttributeValueReader, self)._parse(obj) … … 55 68 56 69 def _parseExtension(self, elem, attributeValue): 70 """Parse XML Attribute value element 71 72 @param elem: ElementTree XML element 73 @type elem: xml.etree.Element 74 75 @param attributeValue: attribute selector to be updated with parsed 76 values 77 @type attributeValue: ndg.xacml.core.attributevalue.AttributeValue 78 79 @raise XMLParseError: error parsing attribute ID XML attribute 80 """ 57 81 if elem.text is None: 58 82 raise XMLParseError('No attribute value element found parsing %r' %
Note: See TracChangeset
for help on using the changeset viewer.