Package ndg :: Package soap :: Package utils :: Module etree :: Class QName
[hide private]

Class QName

source code


XML Qualified Name for ElementTree

Extends ElementTree implementation for improved attribute access support

Instance Methods [hide private]
 
__init__(self, namespaceURI, tag=None, prefix=None)
Initialise a qualified name
source code
bool
__eq__(self, qname)
Enable equality check for QName
source code
bool
__ne__(self, qname)
Enable equality check for QName
source code
 
_getPrefix(self) source code
 
_setPrefix(self, value) source code
 
_getLocalPart(self) source code
 
_setLocalPart(self, value) source code
 
_getNamespaceURI(self) source code
 
_setNamespaceURI(self, value) 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__

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, namespaceURI, tag=None, prefix=None)
(Constructor)

source code 

Initialise a qualified name

Parameters:
  • namespaceURI (basestring) - element namespace URI
  • tag (basestring) - element local name
  • prefix (basestring) - XML namespace prefix
Overrides: object.__init__

__eq__(self, qname)
(Equality operator)

source code 

Enable equality check for QName

Parameters:
  • qname (ndg.security.common.utils.etree.QName) - Qualified Name to compare with self
Returns: bool
True if names are equal

__ne__(self, qname)

source code 

Enable equality check for QName

Parameters:
  • qname (ndg.security.common.utils.etree.QName) - Qualified Name to compare with self
Returns: bool
True if names are not equal

Property Details [hide private]

prefix

Prefix

Get Method:
_getPrefix(self)
Set Method:
_setPrefix(self, value)

localPart

LocalPart

Get Method:
_getLocalPart(self)
Set Method:
_setLocalPart(self, value)

namespaceURI

Namespace URI'

Get Method:
_getNamespaceURI(self)
Set Method:
_setNamespaceURI(self, value)