Package ndg :: Package xacml :: Package core :: Package functions :: Package v1 :: Module regexp_match :: Class RegexpMatchBase
[hide private]

Class RegexpMatchBase

source code

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

XACML 2.0 Regular Expression matching base class function

Nested Classes [hide private]

Inherited from AbstractFunction: __metaclass__

Instance Methods [hide private]
bool
evaluate(self, pat, input)
Match URI against regular expression pattern
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 = None
namespace for the given function
string FUNCTION_NS_SUFFIX = '-regexp-match'
generic suffix for regular expression type function URNs
string CLASS_NAME_SUFFIX = 'RegexpMatch'
suffix for all regular expression class names
NoneType TYPE = None
attribute type for the given implementation.
dict of string mappings to re.RegexObject compiled_regexes = {}
cache of compiled regular expressions
string FUNCTION_SUFFIX
suffix for all regular expression type function class names
  __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, pat, input)

source code 

Match URI against regular expression pattern

Parameters:
  • pat (basestring) - regular expression
  • input (type) - URI to match
Returns: bool
True if URI matches pattern, 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