Ignore:
Timestamp:
28/06/10 13:54:57 (11 years ago)
Author:
pjkersha
Message:

Incomplete - task 2: XACML-Security Integration

  • updating epydoc ready for release.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/matchreader.py

    r7087 r7109  
    2222    '''ElementTree based XACML generic Match parser for subject, resource,  
    2323    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 
    2429    ''' 
    2530    ATTRIBUTE_DESIGNATOR_TYPE = None 
    2631     
    2732    def __init__(self): 
     33        """Virtual method 
     34         
     35        @raise NotImplementedError: ATTRIBUTE_DESIGNATOR_TYPE must be set in a  
     36        derived class 
     37        """ 
    2838        if self.__class__.ATTRIBUTE_DESIGNATOR_TYPE is None: 
    2939            raise NotImplementedError('Extend this class setting the ' 
    30                                       '"ATTRIBUTE_DESIGNATOR_TYPE" ' 
    31                                       'class variable') 
     40                                      '"ATTRIBUTE_DESIGNATOR_TYPE" class ' 
     41                                      'variable') 
    3242             
    3343        super(MatchReaderBase, self).__init__() 
    3444         
    3545    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        """ 
    3755        elem = super(MatchReaderBase, self)._parse(obj) 
    3856         
Note: See TracChangeset for help on using the changeset viewer.