com.japisoft.xpath.function.basic
Class NormalizeSpace
java.lang.Object
|
+--com.japisoft.xpath.function.AbstractFunction
|
+--com.japisoft.xpath.function.basic.NormalizeSpace
- All Implemented Interfaces:
- Function
- public final class NormalizeSpace
- extends AbstractFunction
function returns the argument string with whitespace normalized by stripping leading
and trailing whitespace and replacing sequences of whitespace characters by a single
space. Whitespace characters are the same as those allowed by the S production in XML.
If the argument is omitted, it defaults to the context node converted to a string, in
other words the string-value of the context node
- Version:
- 1.0
- Author:
- (c) 2003 JAPISOFT
|
Method Summary |
java.lang.Object |
eval(XPathContext context,
FastVector arg)
Evalute this function for this context and the following arguments |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NormalizeSpace
public NormalizeSpace()
eval
public java.lang.Object eval(XPathContext context,
FastVector arg)
- Description copied from class:
AbstractFunction
- Evalute this function for this context and the following arguments
- Specified by:
eval in interface Function- Specified by:
eval in class AbstractFunction
- Parameters:
arg - a Vector value, this is the responsability of the function to test the argument type
- Returns:
- an
Object value like Integer, Boolean, String or NodeSet