Package ndg :: Package xacml :: Package parsers :: Package etree :: Module factory :: Class ETreeReaderClassMap
[hide private]

Class ETreeReaderClassMap

source code

UserDict.DictMixin --+    
                     |    
      utils.VettedDict --+
                         |
                        ETreeReaderClassMap

Specialised dictionary to hold mappings of XACML classes to their equivalent ElementTree reader classes

Instance Methods [hide private]
 
__init__(self)
Force entries to derive from AttributeValue and IDs to be string type
source code

Inherited from utils.VettedDict: __contains__, __getitem__, __repr__, __setitem__, get, items, keys, values

Inherited from utils.VettedDict (private): _verifyKeyValPair

Inherited from UserDict.DictMixin: __cmp__, __iter__, __len__, clear, has_key, iteritems, iterkeys, itervalues, pop, popitem, setdefault, update

Static Methods [hide private]
bool
keyFilter(key)
Enforce XACML base class type keys
source code
bool
valueFilter(value)
Enforce ElementTree abstract reader derived types for values
source code
Method Details [hide private]

__init__(self)
(Constructor)

source code 

Force entries to derive from AttributeValue and IDs to be string type

Parameters:
  • args - two arguments: the first is a callable which filters for permissable keys in this dict, the second sets the type or list of types permissable for items in this dict
Overrides: utils.VettedDict.__init__

keyFilter(key)
Static Method

source code 

Enforce XACML base class type keys

Parameters:
  • key (basestring) - URN for attribute
Returns: bool
boolean True indicating key is OK
Raises:
  • TypeError - incorrect input type

valueFilter(value)
Static Method

source code 

Enforce ElementTree abstract reader derived types for values

Parameters:
  • value (ndg.xacml.core.attributevalue.AttributeValue derived type) - attribute value
Returns: bool
boolean True indicating attribute value is correct type
Raises:
  • TypeError - incorrect input type