Package ndg :: Package xacml :: Package core :: Module expression :: Class Expression
[hide private]

Class Expression

source code

   object --+    
            |    
XacmlCoreBase --+
                |
               Expression
Known Subclasses:

XACML Expression type

Nested Classes [hide private]
  __metaclass__
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods [hide private]
 
__init__(self)
Element local name check makes this a virtual method
source code
 
_get_dataType(self) source code
 
_set_dataType(self, value) source code
AttributeValue/NoneType
evaluate(self, context)
Evaluate the result of the expression in a condition.
source code
dict
__getstate__(self)
Enable pickling
source code

Inherited from XacmlCoreBase (private): _getXmlns, _setXmlns

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
NoneType but implement as string in derived classes ELEMENT_LOCAL_NAME = None
XML element local name for the given type
string DATA_TYPE_ATTRIB_NAME = 'DataType'
XML attribute name for data type
  __abstractmethods__ = frozenset(['evaluate'])
  _abc_cache = <_weakrefset.WeakSet object at 0x1011b9750>
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x1011b97d0>
  _abc_negative_cache_version = 10
  _abc_registry = <_weakrefset.WeakSet object at 0x1011b9690>

Inherited from XacmlCoreBase: XACML_1_0_NS_PREFIX, XACML_2_0_NS_PREFIX, XMLNS

Instance Variables [hide private]
None / basestring __dataType
data type for this expression
Properties [hide private]
  dataType
expression value data type

Inherited from XacmlCoreBase: elem, isValidXmlns, xmlns

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Element local name check makes this a virtual method

Raises:
  • NotImplementedError - derived classes must set ELEMENT_LOCAL_NAME to a string
Overrides: object.__init__
(inherited documentation)

evaluate(self, context)

source code 

Evaluate the result of the expression in a condition. Derived classes must implement

Parameters:
  • context (ndg.xacml.core.context.request.Request) - the request context
Returns: AttributeValue/NoneType
attribute value(s) resulting from execution of this expression in a condition
Decorators:
  • @abstractmethod

__getstate__(self)

source code 

Enable pickling

Returns: dict
object's attribute dictionary
Overrides: XacmlCoreBase.__getstate__

Property Details [hide private]

dataType

expression value data type

Get Method:
_get_dataType(self)
Set Method:
_set_dataType(self, value)