- 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/matchreader.py
r7087 r7109 22 22 '''ElementTree based XACML generic Match parser for subject, resource, 23 23 action and environment match types 24 25 @cvar ATTRIBUTE_DESIGNATOR_TYPE: type for attribute designator sub-elements: 26 derived class should set to relevant type e.g. for SubjectMatch, 27 SubjectAttributeDesignator 28 @type ATTRIBUTE_DESIGNATOR_TYPE: NoneType 24 29 ''' 25 30 ATTRIBUTE_DESIGNATOR_TYPE = None 26 31 27 32 def __init__(self): 33 """Virtual method 34 35 @raise NotImplementedError: ATTRIBUTE_DESIGNATOR_TYPE must be set in a 36 derived class 37 """ 28 38 if self.__class__.ATTRIBUTE_DESIGNATOR_TYPE is None: 29 39 raise NotImplementedError('Extend this class setting the ' 30 '"ATTRIBUTE_DESIGNATOR_TYPE" '31 ' classvariable')40 '"ATTRIBUTE_DESIGNATOR_TYPE" class ' 41 'variable') 32 42 33 43 super(MatchReaderBase, self).__init__() 34 44 35 45 def __call__(self, obj): 36 """Parse subject object""" 46 """Parse *Match object (where * = Subject, Resource, Environment or 47 Action 48 49 @param obj: input object to parse 50 @type obj: ElementTree Element, or stream object 51 @return: new XACML match instance 52 @rtype: ndg.xacml.core.matchreader.MatchReaderBase derived type 53 @raise XMLParseError: error reading element 54 """ 37 55 elem = super(MatchReaderBase, self)._parse(obj) 38 56
Note: See TracChangeset
for help on using the changeset viewer.