Uses of Interface org.jaxen.Function

Uses in package org.jaxen.function.ext

Classes implementing org.jaxen.Function

class
boolean ends-with(string,string)
class
node-set evaluate(string)
class
An abstract base class for Locale-specific extension functions.
class
string lower-case(string) This function can take a second parameter of the Locale to use for the String conversion.
class
string upper-case(string) This function can take a second parameter of the Locale to use for the String conversion.

Uses in package org.jaxen.function.xslt

Classes implementing org.jaxen.Function

class
Implements the XSLT document() function

Uses in package org.jaxen.function

Classes implementing org.jaxen.Function

class
4.3 boolean boolean(object)

The boolean function converts its argument to a boolean as follows:

  • a number is true if and only if it is neither positive or negative zero nor NaN

  • a node-set is true if and only if it is non-empty

  • a string is true if and only if its length is non-zero

  • an object of a type other than the four basic types is converted to a boolean in a way that is dependent on that type

class
4.4 number ceiling(number)

The ceiling function returns the smallest (closest to negative infinity) number that is not less than the argument and that is an integer....If the argument is NaN, then NaN is returned.

class
4.2 string concat(string,string,string*)

Concatenates its arguments and returns the resulting string.

class
4.2 boolean contains(string,string)
The contains function returns true if the first argument string contains the second argument string, and otherwise returns false.
class
4.1 number count(node-set)
The count function returns the number of nodes in the argument node-set.
class
4.3 boolean false()

Returns false.

class
4.4 number floor(number)
The floor function returns the largest (closest to positive infinity) number that is not greater than the argument and that is an integer....
class
4.1 node-set id(object)

The id function returns a List of all the elements in the context document that have an ID matching one of a specified list of IDs.

class
4.3 boolean lang(string)

The lang function returns true or false depending on whether the language of the context node as specified by xml:lang attributes is the same as or is a sublanguage of the language specified by the argument string.

class
4.1 number last()
The last function returns a number equal to the context size from the expression evaluation context.
class
4.1 string local-name(node-set?)
The local-name function returns the local part of the expanded-name of the node in the argument node-set that is first in document order.
class
4.1 string name(node-set?)
The name function returns a string containing a QName representing the expanded-name of the node in the argument node-set that is first in document order.
class
4.1 string namespace-uri(node-set?)

The namespace-uri function returns the namespace URI of the expanded-name of the node in the argument node-set that is first in document order.

class
4.2 string normalize-space(string)
The normalize-space function returns the argument string with whitespace normalized by stripping leading and trailing whitespace and replacing sequences of whitespace characters by a single space.
class
4.3 boolean not(boolean)
The not function returns true if its argument is false, and false otherwise.
class
4.4 number number(object)

The number function converts its argument to a number as follows:

  • a string that consists of optional whitespace followed by an optional minus sign followed by a Number followed by whitespace is converted to the IEEE 754 number that is nearest (according to the IEEE 754 round-to-nearest rule) to the mathematical value represented by the string; any other string is converted to NaN

  • boolean true is converted to 1; boolean false is converted to 0

  • a node-set is first converted to a string as if by a call to the string function and then converted in the same way as a string argument

  • an object of a type other than the four basic types is converted to a number in a way that is dependent on that type

If the argument is omitted, it defaults to a node-set with the context node as its only member.

class
4.1 number position()
The position function returns a number equal to the context position from the expression evaluation context.
class
4.4 number round(number)
The round function returns the number that is closest to the argument and that is an integer.
class
4.2 boolean starts-with(string,string)
The starts-with function returns true if the first argument string starts with the second argument string, and otherwise returns false.
class
4.2 string string(object)

The string function converts an object to a string as follows:

class
4.2 number string-length(string)

The string-length function returns the number of Unicode characters in its argument.

class
4.2 string substring-after(string,string)
The substring-after function returns the substring of the first argument string that follows the first occurrence of the second argument string in the first argument string, or the empty string if the first argument string does not contain the second argument string.
class
4.2 string substring-before(string,string)
The substring-before function returns the substring of the first argument string that precedes the first occurrence of the second argument string in the first argument string, or the empty string if the first argument string does not contain the second argument string.
class
4.2 string substring(string,number,number?)

The substring function returns the substring of the first argument starting at the position specified in the second argument with length specified in the third argument.

class
4.4 number sum(node-set)
The sum function returns the sum, for each node in the argument node-set, of the result of converting the string-values of the node to a number.
class
4.2 string translate(string,string,string)

The translate function returns the first argument string with occurrences of characters in the second argument string replaced by the character at the corresponding position in the third argument string.

class
4.3 boolean true()

Returns true.

Uses in package org.jaxen

Methods with parameter type org.jaxen.Function

void
SimpleFunctionContext.registerFunction(String namespaceURI, String localName, Function function)
Register a new function.

Methods with return type org.jaxen.Function

Function
Context.getFunction(String namespaceURI, String prefix, String localName)
Retrieve a Function.
Function
ContextSupport.getFunction(String namespaceURI, String prefix, String localName)
Retrieve a Function.
Function
FunctionContext.getFunction(String namespaceURI, String prefix, String localName)
An implementation should return a Function implementation object based on the namespace URI and local name of the function-call expression.
Function
SimpleFunctionContext.getFunction(String namespaceURI, String prefix, String localName)