Package | Description |
---|---|
org.jaxen |
This package defines the core Jaxen API to the XPath engine.
|
org.jaxen.dom |
Navigation for W3C DOM trees.
|
org.jaxen.function |
Standard XPath function library.
|
org.jaxen.function.ext |
Extension functions to the standard XPath function library.
|
org.jaxen.function.xslt |
XPath functions which are defined in XSLT.
|
org.jaxen.javabean |
Navigation for JavaBeans.
|
org.jaxen.util |
Utility objects for walking object models.
|
Modifier and Type | Interface and Description |
---|---|
interface |
NamedAccessNavigator
Interface for navigating around an arbitrary object model
accessing certain parts by name for performance.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultNavigator
Default implementation of
Navigator . |
Modifier and Type | Method and Description |
---|---|
Navigator |
ContextSupport.getNavigator()
Retrieve the
Navigator . |
Navigator |
BaseXPath.getNavigator()
Retrieve the XML object-model-specific
Navigator
for us in evaluating this XPath expression. |
Navigator |
Context.getNavigator()
Retrieve the current
Navigator . |
Navigator |
XPath.getNavigator()
Retrieve the XML object-model-specific
Navigator
used to evaluate this XPath expression. |
Modifier and Type | Method and Description |
---|---|
void |
SimpleNamespaceContext.addElementNamespaces(Navigator nav,
Object element)
Adds all the namespace declarations that are in scope on the given
element.
|
Constructor and Description |
---|
BaseXPath(String xpathExpr,
Navigator navigator)
Construct given an XPath expression string.
|
ContextSupport(NamespaceContext namespaceContext,
FunctionContext functionContext,
VariableContext variableContext,
Navigator navigator)
Create a new ContextSupport object.
|
Modifier and Type | Method and Description |
---|---|
static Navigator |
DocumentNavigator.getInstance()
Get a constant DocumentNavigator for efficiency.
|
Modifier and Type | Method and Description |
---|---|
static String |
NamespaceUriFunction.evaluate(List list,
Navigator nav)
Returns the namespace URI of
list.get(0) |
static String |
LocalNameFunction.evaluate(List list,
Navigator nav)
Returns the local-name of
list.get(0) |
static String |
ConcatFunction.evaluate(List list,
Navigator nav)
Converts each item in the list to a string and returns the
concatenation of these strings.
|
static String |
NameFunction.evaluate(List list,
Navigator nav)
Returns the name of
list.get(0) |
static List |
IdFunction.evaluate(List contextNodes,
Object arg,
Navigator nav)
Returns a list of the nodes with the specified IDs.
|
static Double |
FloorFunction.evaluate(Object obj,
Navigator nav)
Returns the largest integer less than or equal to the argument.
|
static Boolean |
NotFunction.evaluate(Object obj,
Navigator nav)
Returns
Boolean.TRUE if the boolean value of
obj is false, and Boolean.FALSE otherwise. |
static Double |
RoundFunction.evaluate(Object obj,
Navigator nav)
Returns the integer nearest to the argument.
|
static String |
NormalizeSpaceFunction.evaluate(Object strArg,
Navigator nav)
Returns the string-value of
strArg after removing
all leading and trailing white space, and
replacing each other sequence of whitespace by a single space. |
static Double |
SumFunction.evaluate(Object obj,
Navigator nav)
Returns the sum of the items in a list.
|
static Double |
NumberFunction.evaluate(Object obj,
Navigator nav)
Returns the number value of
obj . |
static Double |
StringLengthFunction.evaluate(Object obj,
Navigator nav)
Returns the number of Unicode characters in the string-value of
an object.
|
static Double |
CeilingFunction.evaluate(Object obj,
Navigator nav)
Returns the smallest integer greater than or equal to the argument.
|
static Boolean |
BooleanFunction.evaluate(Object obj,
Navigator nav)
Convert the argument
obj to a Boolean
according to the following rules: |
static String |
StringFunction.evaluate(Object obj,
Navigator nav)
Returns the XPath string-value of
obj . |
static Boolean |
ContainsFunction.evaluate(Object strArg,
Object matchArg,
Navigator nav)
Returns true if the first string contains the second string; false otherwise.
|
static Boolean |
StartsWithFunction.evaluate(Object strArg,
Object matchArg,
Navigator nav)
Returns true if the string-value of
strArg
starts with the string-value of matchArg . |
static String |
SubstringBeforeFunction.evaluate(Object strArg,
Object matchArg,
Navigator nav)
Returns the part of
strArg that precedes the first occurence
of matchArg ; or the empty string if the
strArg does not contain matchArg |
static String |
SubstringAfterFunction.evaluate(Object strArg,
Object matchArg,
Navigator nav)
Returns the part of
strArg that follows the first occurence
of matchArg ; or the empty string if the
strArg does not contain matchArg |
static String |
TranslateFunction.evaluate(Object strArg,
Object fromArg,
Object toArg,
Navigator nav)
Returns a copy of
strArg in which
characters found in fromArg are replaced by
corresponding characters from toArg . |
Modifier and Type | Method and Description |
---|---|
static String |
UpperFunction.evaluate(Object strArg,
Locale locale,
Navigator nav)
Converts the given string value to upper case using an optional Locale
|
static String |
LowerFunction.evaluate(Object strArg,
Locale locale,
Navigator nav)
Converts the given string value to lower case using an optional Locale
|
static Boolean |
EndsWithFunction.evaluate(Object strArg,
Object matchArg,
Navigator nav) |
protected Locale |
LocaleFunctionSupport.getLocale(Object value,
Navigator navigator)
Attempts to convert the given function argument value
into a Locale either via casting, extracting it from a List
or looking up the named Locale using reflection.
|
Modifier and Type | Method and Description |
---|---|
static Object |
DocumentFunction.evaluate(String url,
Navigator nav) |
Modifier and Type | Class and Description |
---|---|
class |
DocumentNavigator
Interface for navigating around a JavaBean object model.
|
Modifier and Type | Method and Description |
---|---|
static Navigator |
DocumentNavigator.getInstance()
Retrieve the singleton instance of this
DocumentNavigator . |
Constructor and Description |
---|
AncestorAxisIterator(Object contextNode,
Navigator navigator)
Create a new ancestor axis iterator.
|
AncestorOrSelfAxisIterator(Object contextNode,
Navigator navigator)
Create a new
ancestor-or-self axis iterator. |
DescendantAxisIterator(Navigator navigator,
Iterator iterator) |
DescendantAxisIterator(Object contextNode,
Navigator navigator)
Create a new
descendant axis iterator. |
DescendantOrSelfAxisIterator(Object contextNode,
Navigator navigator)
Create a new
desscendant-or-self axis iterator. |
FollowingAxisIterator(Object contextNode,
Navigator navigator)
Create a new
following axis iterator. |
FollowingSiblingAxisIterator(Object contextNode,
Navigator navigator)
Create a new
following-sibling axis iterator. |
PrecedingAxisIterator(Object contextNode,
Navigator navigator)
Create a new
preceding axis iterator. |
PrecedingSiblingAxisIterator(Object contextNode,
Navigator navigator)
Create a new
preceding-sibling axis iterator. |
Copyright 2001–2022 The Jaxen Project. All rights reserved.