org.apache.xpath.functions

Class FuncSubstring

public class FuncSubstring extends Function3Args

Execute the Substring() function.

UNKNOWN: advanced

Method Summary
voidcheckNumberArgs(int argNum)
Check that the number of arguments passed to this function is correct.
XObjectexecute(XPathContext xctxt)
Execute the function.

Method Detail

checkNumberArgs

public void checkNumberArgs(int argNum)
Check that the number of arguments passed to this function is correct.

Parameters: argNum The number of arguments that is being passed to the function.

Throws: WrongNumberArgsException

execute

public XObject execute(XPathContext xctxt)
Execute the function. The function must return a valid object.

Parameters: xctxt The current execution context.

Returns: A valid XObject.

Throws: javax.xml.transform.TransformerException

Copyright B) 2006 Apache XML Project. All Rights Reserved.