Class CpoFunction
java.lang.Object
org.synchronoss.cpo.core.meta.bean.CpoFunctionBean
org.synchronoss.cpo.core.meta.domain.CpoFunction
- All Implemented Interfaces:
Serializable
Runtime metadata for a single CPO function: extends
CpoFunctionBean's name/expression/
description with the ordered list of CpoArguments bound to the function's positional bind
markers.- Author:
- dberry
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArgument(CpoArgument argument) Appends an argument to this function's argument list.Gets the arguments bound to this function's bind markers, in bind-marker order.parameterToString(CpoFunction function) Builds a diagnostic string describingfunction's argument list: each argument's bound attribute Java type, for debugging/logging purposes.booleanremoveArgument(int index) Removes the argument at the given position in this function's argument list.booleanremoveArgument(CpoArgument argument) Removes an argument from this function's argument list.toString()Gets the full field-by-field string representation of this function, as produced byCpoFunctionBean.toString().Methods inherited from class org.synchronoss.cpo.core.meta.bean.CpoFunctionBean
equals, getDescription, getExpression, getName, hashCode, setDescription, setExpression, setName
-
Constructor Details
-
CpoFunction
public CpoFunction()Creates an empty instance.
-
-
Method Details
-
getArguments
Gets the arguments bound to this function's bind markers, in bind-marker order.- Returns:
- the bound arguments
-
addArgument
Appends an argument to this function's argument list. A no-op ifargumentisnull.- Parameters:
argument- the argument to add
-
removeArgument
Removes an argument from this function's argument list.- Parameters:
argument- the argument to remove- Returns:
trueif the argument was found and removed,falseotherwise
-
removeArgument
public boolean removeArgument(int index) Removes the argument at the given position in this function's argument list.- Parameters:
index- the position of the argument to remove- Returns:
trueifindexwas in range and the argument was removed,falseotherwise
-
parameterToString
Builds a diagnostic string describingfunction's argument list: each argument's bound attribute Java type, for debugging/logging purposes.- Parameters:
function- the function whose arguments should be described, may benull- Returns:
- a diagnostic description of the argument list, or
" null function."iffunctionisnull
-
toString
Returns this function's
name.- Overrides:
toStringin classCpoFunctionBean
-
toStringFull
Gets the full field-by-field string representation of this function, as produced byCpoFunctionBean.toString().- Returns:
- the full string representation
-