org.ucl.xpath.function
Class FnRemove
java.lang.Object
org.ucl.xpath.function.Function
org.ucl.xpath.function.FnRemove
- public class FnRemove
- extends Function
Returns a new sequence constructed from the value of $target with the item at the
position specified by the value of $position removed.
If $position is less than 1 or greater than the number of items in $target, $target
is returned. Otherwise, the value returned by the function consists of all items of
$target whose index is less than $position, followed by all items of $target whose
index is greater than $position. If $target is the empty sequence, the empty
sequence is returned.
Constructor Summary |
FnRemove()
Constructor for FnRemove. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FnRemove
public FnRemove()
- Constructor for FnRemove.
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.
remove
public static ResultSequence remove(java.util.Collection args)
throws DynamicError
- Remove operation.
- Parameters:
args
- Result from the expressions evaluation.
- Returns:
- Result of fn:remove operation.
- Throws:
DynamicError
- Dynamic error.