Package ndg :: Package xacml :: Package core :: Package functions :: Package v1 :: Module at_least_one_member_of :: Class AtLeastOneMemberOfBase
[hide private]

Class AtLeastOneMemberOfBase

source code

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

Base class implementation for at least one member of XACML function - check at least one item in one set is contained in the second set

urn:oasis:names:tc:xacml:1.0:function:<type>-at-least-one-member-of

Nested Classes [hide private]

Inherited from AbstractFunction: __metaclass__

Instance Methods [hide private]
bool
evaluate(self, set1, set2)
Check input is contained in the 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.
  __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, set1, set2)

source code 

Check input is contained in the bag

Parameters:
  • set1 (TypedList(self.__class__.TYPE)) - check to see if at least one item in this set is contained in the second set
  • set2 (TypedList(self.__class__.TYPE)) - bag of self.__class__.TYPE values
Returns: bool
True if str is in bag, 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