Package ndg :: Package xacml :: Package core :: Package functions :: Package v1 :: Module one_and_only :: Class OneAndOnlyBase
[hide private]

Class OneAndOnlyBase

source code

      object --+    
               |    
AbstractFunction --+
                   |
                  OneAndOnlyBase

Base class for XACML <type>-one-and-only functions

Nested Classes [hide private]

Inherited from AbstractFunction: __metaclass__

Instance Methods [hide private]
dependent on bag type set in derived type
evaluate(self, bag)
Check a bag has one element only and return it
source code

Inherited from AbstractFunction: __init__

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

Class Variables [hide private]
NoneType TYPE = None
attribute type for the given implementation.
  __abstractmethods__ = frozenset([])

Inherited from AbstractFunction: FUNCTION_NS, V1_0_FUNCTION_NS, V2_0_FUNCTION_NS

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

evaluate(self, bag)

source code 

Check a bag has one element only and return it

Parameters:
  • bag (ndg.xacml.utils.TypedList) - bag containing one element
Returns: dependent on bag type set in derived type
single item from bag
Overrides: AbstractFunction.evaluate

Class Variable Details [hide private]

TYPE

attribute type for the given implementation. Derived classes should set appropriately
Type:
NoneType
Value:
None