Package ndg :: Package saml :: Package xml :: Module etree :: Class QName
[hide private]

Class QName

source code


Extend ElementTree implementation for improved attribute access support

Instance Methods [hide private]
 
__init__(self, input, tag=None, prefix=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
basestring
_getPrefix(self)
Returns: NS prefix
source code
 
_setPrefix(self, value) source code
basestring
_getLocalPart(self)
Returns: NS local name
source code
 
_setLocalPart(self, value) source code
basestring
_getNamespaceURI(self)
Returns: NS URI
source code
 
_setNamespaceURI(self, value) source code
bool
__eq__(self, qname)
Enable equality check for QName.
source code
bool
__ne__(self, qname)
Enable equality check for QName.
source code

Inherited from xml.etree.ElementTree.QName: __cmp__, __hash__, __str__

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

Class Methods [hide private]
ndg.saml.xml.etree.QName
fromGeneric(cls, genericQName)
Cast the generic QName type in ndg.saml.common.xml to this ElementTree specific implementation
source code
Static Methods [hide private]
 
getNs(tag) source code
 
getLocalPart(tag) source code
Properties [hide private]
  prefix
Prefix
  localPart
LocalPart
  namespaceURI
Namespace URI'

Inherited from object: __class__

Method Details [hide private]

__init__(self, input, tag=None, prefix=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • input (basestring) - ElementTree style namespace URI + tag name - {namespace URI}tag - OR if tag keyword is set, the namespace URI alone
  • tag (basestring / None) - element tag name. If None, input must contain the namespace URI and tag name in the ElementTree form {namespace URI}tag.
  • prefix (basestring / None) - namespace prefix
Overrides: object.__init__

_getPrefix(self)

source code 
Returns: basestring
NS prefix

_setPrefix(self, value)

source code 
Parameters:
  • value (basestring) - NS prefix

_getLocalPart(self)

source code 
Returns: basestring
NS local name

_setLocalPart(self, value)

source code 
Parameters:
  • value (basestring) - NS local name

_getNamespaceURI(self)

source code 
Returns: basestring
NS URI

_setNamespaceURI(self, value)

source code 
Parameters:
  • value (basestring) - NS URI

__eq__(self, qname)
(Equality operator)

source code 

Enable equality check for QName. Note that prefixes don't need to match

Parameters:
  • qname (ndg.security.common.utils.etree.QName) - Qualified Name to compare with self
Returns: bool
True if the qualified names match, False otherwise

__ne__(self, qname)

source code 

Enable equality check for QName. Note that prefixes don't need to match

Parameters:
  • qname (ndg.security.common.utils.etree.QName) - Qualified Name to compare with self
Returns: bool
True if the qualified names don't match, False otherwise

fromGeneric(cls, genericQName)
Class Method

source code 

Cast the generic QName type in ndg.saml.common.xml to this ElementTree specific implementation

Parameters:
  • genericQName (ndg.saml.common.xml.QName) - SAML core qualified name type
Returns: ndg.saml.xml.etree.QName
ElementTree specific qualified name type

Property Details [hide private]

prefix

Prefix

Get Method:
_getPrefix(self) - Returns: NS prefix
Set Method:
_setPrefix(self, value)

localPart

LocalPart

Get Method:
_getLocalPart(self) - Returns: NS local name
Set Method:
_setLocalPart(self, value)

namespaceURI

Namespace URI'

Get Method:
_getNamespaceURI(self) - Returns: NS URI
Set Method:
_setNamespaceURI(self, value)