Package ndg :: Package xacml :: Package core :: Package functions :: Package v1 :: Module and :: Class And
[hide private]

Class And

source code

      object --+    
               |    
AbstractFunction --+
                   |
                  And

Base class for XACML <type>-and functions

Nested Classes [hide private]
str ATTRIBUTE_TYPE
type for arguments

Inherited from AbstractFunction: __metaclass__

Instance Methods [hide private]
bool
evaluate(self, *args)
perform AND function on the variable length argument list of elements
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 (must be string in derived type) FUNCTION_NS = 'urn:oasis:names:tc:xacml:1.0:function:and'
namespace for the given function
  __abstractmethods__ = frozenset([])

Inherited from AbstractFunction: V1_0_FUNCTION_NS, V2_0_FUNCTION_NS

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

evaluate(self, *args)

source code 

perform AND function on the variable length argument list of elements

access_control-xacml-2.0-core-spec-os, Fe 2005 - A.3.5 Logical functions access_control-xacml-2.0-core-spec-os, Fe 2005 - 4.2.4.2 ( Rule 2 a[346] ... a[361] )

Parameters:
  • *args - variable number of elements to be AND'ed
  • bool (ndg.xacml.utils.TypedList)
Returns: bool
result of AND operation on the inputs
Overrides: AbstractFunction.evaluate