1 """NDG XACML ElementTree based reader for subject match type
2
3 NERC DataGrid
4 """
5 __author__ = "P J Kershaw"
6 __date__ = "16/03/10"
7 __copyright__ = "(C) 2010 Science and Technology Facilities Council"
8 __contact__ = "Philip.Kershaw@stfc.ac.uk"
9 __license__ = "BSD - see LICENSE file in top-level directory"
10 __contact__ = "Philip.Kershaw@stfc.ac.uk"
11 __revision__ = "$Id: subjectmatchreader.py 7109 2010-06-28 12:54:57Z pjkersha $"
12 from ndg.xacml.core.match import SubjectMatch
13 from ndg.xacml.core.attributedesignator import SubjectAttributeDesignator
14 from ndg.xacml.parsers.etree.matchreader import MatchReaderBase
15
16
18 """ElementTree based parser for XACML SubjectMatch
19
20 @cvar TYPE: XACML class type that this reader will read values into
21 @type TYPE: abc.ABCMeta
22
23 @cvar ATTRIBUTE_DESIGNATOR_TYPE: type for attribute designator sub-elements
24 @type ATTRIBUTE_DESIGNATOR_TYPE: abc.ABCMeta
25 """
26 TYPE = SubjectMatch
27 ATTRIBUTE_DESIGNATOR_TYPE = SubjectAttributeDesignator
28