org.ucl.xpath.function
Class FnContains
java.lang.Object
org.ucl.xpath.function.Function
org.ucl.xpath.function.FnContains
- public class FnContains
- extends Function
Returns an xs:boolean indicating whether or not the value of $arg1 contains
(at the beginning, at the end, or anywhere within) at least one sequence of
collation units that provides a minimal match to the collation units in the
value of $arg2, according to the collation that is used.
Constructor Summary |
FnContains()
Constructor for FnContains. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FnContains
public FnContains()
- Constructor for FnContains.
evaluate
public ResultSequence evaluate(java.util.Collection args)
throws DynamicError
- Evaluate arguments.
- Specified by:
evaluate
in class Function
- Parameters:
args
- argument expressions.
- Returns:
- Result of evaluation.
- Throws:
DynamicError
- Dynamic error.
contains
public static ResultSequence contains(java.util.Collection args)
throws DynamicError
- Contains operation.
- Parameters:
args
- Result from the expressions evaluation.
- Returns:
- Result of fn:contains operation.
- Throws:
DynamicError
- Dynamic error.
expected_args
public static java.util.Collection expected_args()
- Obtain a list of expected arguments.
- Returns:
- Result of operation.