Java org.apache.commons.jxpath JXPathContext fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.jxpath JXPathContext fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.jxpath JXPathContext.

The text is from its open source code.

Method

CompiledExpressioncompile(String xpath)
Compiles the supplied XPath and returns an internal representation of the path that can then be evaluated.
PointercreatePath(String xpath)
Creates missing elements of the path by invoking an AbstractFactory , which should first be installed on the context by calling #setFactory .
PointercreatePathAndSetValue(String xpath, Object value)
The same as setValue, except it creates intermediate elements of the path by invoking an AbstractFactory , which should first be installed on the context by calling #setFactory .
ObjectgetContextBean()
Returns the JavaBean associated with this context.
PointergetContextPointer()
Returns a Pointer for the context bean.
AbstractFactorygetFactory()
Returns the AbstractFactory installed on this context.
FunctionsgetFunctions()
Returns the set of functions installed on the context.
PointergetNamespaceContextPointer()
Returns the namespace context pointer set with #setNamespaceContextPointer(Pointer) setNamespaceContextPointer() or, if none has been specified, the context pointer otherwise.
StringgetNamespaceURI(String prefix)
Given a prefix, returns a registered namespace URI.
JXPathContextgetParentContext()
Returns the parent context of this context or null.
PointergetPointer(String xpath)
Traverses the xpath and returns a Pointer.
StringgetPrefix(String namespaceURI)
Get the prefix associated with the specifed namespace URI.
JXPathContextgetRelativeContext(Pointer pointer)
Returns a JXPathContext that is relative to the current JXPathContext.
ObjectgetValue(String xpath)
Evaluates the xpath and returns the resulting object.
ObjectgetValue(String xpath, Class requiredType)
Evaluates the xpath, converts the result to the specified class and returns the resulting object.
VariablesgetVariables()
Returns the variable pool associated with the context.
booleanisLenient()
Learn whether this JXPathContext is lenient.
Iteratoriterate(String xpath)
Traverses the xpath and returns an Iterator of all results found for the path.
IteratoriteratePointers(String xpath)
Traverses the xpath and returns an Iterator of Pointers.
JXPathContextnewContext(Object contextBean)
Creates a new JXPathContext with the specified object as the root node.
JXPathContextnewContext(JXPathContext parentContext, Object contextBean)
Creates a new JXPathContext with the specified bean as the root node and the specified parent context.
voidregisterNamespace(String prefix, String namespaceURI)
Registers a namespace prefix.
voidremoveAll(String xpath)
Removes all elements of the object graph described by the xpath.
voidremovePath(String xpath)
Removes the element of the object graph described by the xpath.
ListselectNodes(String xpath)
Finds all nodes that match the specified XPath.
ObjectselectSingleNode(String xpath)
Finds the first object that matches the specified XPath.
voidsetFactory(AbstractFactory factory)
Install an abstract factory that should be used by the createPath() and createPathAndSetValue() methods.
voidsetFunctions(Functions functions)
Install a library of extension functions.
voidsetIdentityManager(IdentityManager idManager)
Install an identity manager that will be used by the context to look up a node by its ID.
voidsetLenient(boolean lenient)
If the context is in the lenient mode, then getValue() returns null for inexistent paths.
voidsetNamespaceContextPointer(Pointer namespaceContextPointer)
Namespace prefixes can be defined implicitly by specifying a pointer to a context where the namespaces are defined.
voidsetValue(String xpath, Object value)
Modifies the value of the property described by the supplied xpath.
voidsetVariables(Variables vars)
Installs a custom implementation of the Variables interface.