|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ricebridge.xmlman.in.func.TrimFunction
Defines XPath function to trim whitespace from strings.
Function signature: string trim(object)
An implicit call to string() is made on the argument object. This function
simply performs a Java String.trim(). Under the default settings
it would normally be used like so: rb:trim(' foo '), returning 'foo'.
The Source Code of this Java class is available under a BSD-style license.
| Constructor Summary | |
TrimFunction()
|
|
| Method Summary | |
Object |
call(com.ricebridge.xmlman.tp.Context pContext,
List pArgs)
Call the function. |
static String |
evaluate(Object pObject,
com.ricebridge.xmlman.tp.Navigator pNavigator)
Evaluate the function. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TrimFunction()
| Method Detail |
public Object call(com.ricebridge.xmlman.tp.Context pContext,
List pArgs)
throws com.ricebridge.xmlman.tp.FunctionCallException
call in interface FunctionpContext - XPath execution contextpArgs - Function arguments
com.ricebridge.xmlman.tp.FunctionCallException
public static String evaluate(Object pObject,
com.ricebridge.xmlman.tp.Navigator pNavigator)
pObject - object representing string to trimpNavigator - Source document navigator
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||