Package ndg :: Package xacml :: Package core :: Class XacmlCoreBase
[hide private]

Class XacmlCoreBase

source code

object --+
         |
        XacmlCoreBase
Known Subclasses:

Base class for all XACML types

Instance Methods [hide private]
 
__init__(self)
Element local name check makes this a virtual method
source code
basestring/NoneType
_getXmlns(self)
Get XML Namespace for this XACML type
source code
 
_setXmlns(self, value)
Set XML Namespace for this XACML type
source code
dict
__getstate__(self)
Enable pickling
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
string XACML_1_0_NS_PREFIX = 'urn:oasis:names:tc:xacml:1.0'
XACML version 1.0 namespace prefix
string XACML_2_0_NS_PREFIX = 'urn:oasis:names:tc:xacml:2.0'
XACML version 2.0 namespace prefix
tuple XMLNS = ('urn:oasis:names:tc:xacml:1.0', 'urn:oasis:names:tc:x...
list of valid XACML namespaces
NoneType but implement as string in derived classes ELEMENT_LOCAL_NAME = None
XML element local name for the given type
Instance Variables [hide private]
NoneType / dependent on Python XML parser used __elem
XML element
NoneType / basestring __xmlns
XML namespace for the XACML type
Properties [hide private]
  xmlns
XML Namespace for policy the document
bool isValidXmlns
Check XML namespace fits with the known XACML namespaces
  elem
XML Node for as represented by parser/writer specified with the reader/writer attributes.
  __reader
  __writer

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Element local name check makes this a virtual method

Raises:
  • NotImplementedError - derived classes must set ELEMENT_LOCAL_NAME to a string
Overrides: object.__init__

_getXmlns(self)

source code 

Get XML Namespace for this XACML type

Returns: basestring/NoneType
the XML namespace set

_setXmlns(self, value)

source code 

Set XML Namespace for this XACML type

Parameters:
  • value (basestring/NoneType) - the XML namespace to set

__getstate__(self)

source code 

Enable pickling

Returns: dict
object's attribute dictionary

Class Variable Details [hide private]

XMLNS

list of valid XACML namespaces
Type:
tuple
Value:
('urn:oasis:names:tc:xacml:1.0', 'urn:oasis:names:tc:xacml:2.0')

Property Details [hide private]

xmlns

XML Namespace for policy the document

Get Method:
_getXmlns(self) - Get XML Namespace for this XACML type
Set Method:
_setXmlns(self, value) - Set XML Namespace for this XACML type

isValidXmlns

Check XML namespace fits with the known XACML namespaces

Get Method:
unreachable.isValidXmlns(self) - Check XML namespace fits with the known XACML namespaces
Type:
bool

elem

XML Node for as represented by parser/writer specified with the reader/writer attributes. Readers of context elements should set this element if a policy uses AttributeSelectors to do XPath queries into the request context

Get Method:
unreachable.elem(self) - XML Node for as represented by parser/writer specified with the reader/writer attributes.
Set Method:
unreachable.elem(self, value) - "XML Node for as represented by parser/writer specified with the reader/writer attributes