com.japisoft.xpath.function.basic
Class SubStringBefore
java.lang.Object
|
+--com.japisoft.xpath.function.AbstractFunction
|
+--com.japisoft.xpath.function.basic.SubStringBefore
- All Implemented Interfaces:
- Function
- public final class SubStringBefore
- extends AbstractFunction
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. For example, substring-before("1999/04/01","/") returns 1999
- 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 |
SubStringBefore
public SubStringBefore()
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