org.exolab.adaptx.xpath.functions

Class FunctionCallImpl

public abstract class FunctionCallImpl extends FunctionCall implements Parameters

An abstract class representing an XPath function call

Version: $Revision: 3878 $

Author: Keith Visco

Field Summary
static StringINVALID_NUMBER_PARAMS
static StringINVALID_RESULT
Constructor Summary
FunctionCallImpl(String name)
Method Summary
voidaddParameter(XPathExpression expr)
Adds the specified Expr to the list
StringgetFunctionName()
Returns the name of this function call
XPathExpressiongetParameter(int index)
Returns the Expr at the specified position in this list.
intgetParameterCount()
Returns the number of expressions in the List
StringtoString()
Returns the String representation of this FunctionCall

Field Detail

INVALID_NUMBER_PARAMS

public static final String INVALID_NUMBER_PARAMS

INVALID_RESULT

public static final String INVALID_RESULT

Constructor Detail

FunctionCallImpl

public FunctionCallImpl(String name)

Method Detail

addParameter

public final void addParameter(XPathExpression expr)
Adds the specified Expr to the list

Parameters: expr the Expr to add to the list

Returns: true if the Expr is added to the list

getFunctionName

public String getFunctionName()
Returns the name of this function call

Returns: the name of this function call

getParameter

public final XPathExpression getParameter(int index)
Returns the Expr at the specified position in this list.

Parameters: index the position of the Expr to return

Throws: IndexOutOfBoundsException

getParameterCount

public final int getParameterCount()
Returns the number of expressions in the List

Returns: the number of expressions in the List

toString

public String toString()
Returns the String representation of this FunctionCall

Returns: the String representation of this FunctionCall