Package ndg :: Package xacml :: Package parsers :: Package etree :: Module attributevaluereader :: Class ETreeDataTypeReaderClassMap
[hide private]

Class ETreeDataTypeReaderClassMap

source code

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

Specialised dictionary to hold mappings of XACML AttributeValue DataTypes and 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 string type keys for Attribute Value DataType URIs
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 string type keys for Attribute Value DataType URIs

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.parsers.etree.attributevaluereader.ETreeDataTypeReaderBase to their derived type) - attribute value
Returns: bool
boolean True indicating attribute value is correct type
Raises:
  • TypeError - incorrect input type