Package ndg :: Package xacml :: Package core :: Package functions :: Package v1 :: Module bag :: Class BagBase
[hide private]

Class BagBase

source code

      object --+    
               |    
AbstractFunction --+
                   |
                  BagBase
Known Subclasses:

Abstract bag function for all types of bag function

urn:oasis:names:tc:xacml:1.0:function:<type>-bag

Nested Classes [hide private]

Inherited from AbstractFunction: __metaclass__

Instance Methods [hide private]
bool
evaluate(self, *args)
return inputs into a bag
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.
string FUNCTION_SUFFIX = 'Bag'
suffix for all bag function class names
string FUNCTION_NS_SUFFIX = '-bag'
generic suffix for at least one member of function URNs
  __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, *args)

source code 

return inputs into a bag

Parameters:
  • args (tuple) - inputs to add to bag
Returns: bool
True if strings match, False otherwise
Overrides: AbstractFunction.evaluate

Class Variable Details [hide private]

TYPE

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