1 """NDG XACML 2.0 regular expression matching function module
2
3 NERC DataGrid
4 """
5 __author__ = "P J Kershaw"
6 __date__ = "26/03/10"
7 __copyright__ = ""
8 __license__ = "BSD - see LICENSE file in top-level directory"
9 __contact__ = "Philip.Kershaw@stfc.ac.uk"
10 __revision__ = '$Id: regexp_match.py 7955 2011-12-21 18:29:45Z rwilkinson $'
11 from ndg.xacml.core.functions import FunctionClassFactoryBase
12
13
14 from ndg.xacml.core.functions.v1.regexp_match import RegexpMatchBase
15
16
18 """Class Factory for *-regexp-match XACML function classes
19
20 @cvar FUNCTION_NAMES: regular expression match function URNs
21 @type FUNCTION_NAMES: tuple
22
23 @cvar FUNCTION_NS_SUFFIX: generic suffix for one and only function URNs
24 @type FUNCTION_NS_SUFFIX: string
25
26 @cvar FUNCTION_BASE_CLASS: base class for regular expression match function
27 classes
28 @type FUNCTION_BASE_CLASS: ndg.xacml.core.functions.v1.RegexMatchBase
29 """
30 FUNCTION_NS_SUFFIX = RegexpMatchBase.FUNCTION_NS_SUFFIX
31 FUNCTION_BASE_CLASS = RegexpMatchBase
32 FUNCTION_NAMES = (
33 'urn:oasis:names:tc:xacml:2.0:function:anyURI-regexp-match',
34 'urn:oasis:names:tc:xacml:2.0:function:ipAddress-regexp-match',
35 'urn:oasis:names:tc:xacml:2.0:function:dnsName-regexp-match',
36 'urn:oasis:names:tc:xacml:2.0:function:rfc822Name-regexp-match',
37 'urn:oasis:names:tc:xacml:2.0:function:x500Name-regexp-match'
38 )
39