Package ndg :: Package xacml :: Package utils :: Module xpath_selector :: Class XPathSelectorInterface
[hide private]

Class XPathSelectorInterface

source code

object --+
         |
        XPathSelectorInterface
Known Subclasses:

Interface for XPath selectors.

Nested Classes [hide private]
  __metaclass__
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods [hide private]
 
__init__(self, contextElem)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
list of basestr
selectText(self, path)
Performs an XPath search and returns text content of matched elements.
source code

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

Class Variables [hide private]
  __abstractmethods__ = frozenset(['__init__', 'selectText'])
  _abc_cache = <_weakrefset.WeakSet object at 0x101218fd0>
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x101222090>
  _abc_negative_cache_version = 10
  _abc_registry = <_weakrefset.WeakSet object at 0x101218f10>
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, contextElem)
(Constructor)

source code 

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

Parameters:
  • contextElem (type of an XML element appropriate to implementation) - context element on which searches are based
Decorators:
  • @abstractmethod
Overrides: object.__init__

selectText(self, path)

source code 

Performs an XPath search and returns text content of matched elements.

Parameters:
  • path (str) - XPath path expression
Returns: list of basestr
text from selected elements
Decorators:
  • @abstractmethod