Package com.jcabi.xml

Class XPathContext

java.lang.Object
com.jcabi.xml.XPathContext
All Implemented Interfaces:
NamespaceContext

public final class XPathContext extends Object implements NamespaceContext
Convenient internal implementation of NamespaceContext.

The class is immutable and thread-safe.

Since:
0.1
  • Constructor Details

    • XPathContext

      public XPathContext()
      Public ctor.

      Since this class is private in the package users won't be able to see this code and its documentation. That's why all these prefixes and namespaces should be documented in XMLDocument(String) ctor. When adding/changing this list - don't forget to document it there.

    • XPathContext

      public XPathContext(Object... namespaces)
      Public ctor with custom namespaces.
      Parameters:
      namespaces - List of namespaces
  • Method Details