|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sage.accpac.sm.crystal.ufl.AbstractAccpacFormulaFunction
public abstract class AbstractAccpacFormulaFunction
Base class for a Crystal UFL formula function that belongs to the Java version of the Accpac UFL library. The library is a combination of functions based on the UFLCAPW (u2lcapw.dll) and UFLCHKS (u2lchks.dll) C UFLs.
| Constructor Summary | |
|---|---|
AbstractAccpacFormulaFunction()
|
|
| Method Summary | |
|---|---|
protected int |
getIntegerArgument(com.crystaldecisions.reports.formulas.FormulaValueReference[] arguments,
int i)
Returns the specified Crystal formula argument as an integer (primitive int type). |
protected java.lang.String |
getStringArgument(com.crystaldecisions.reports.formulas.FormulaValueReference[] arguments,
int i,
boolean allowNull)
Returns the specified Crystal formula argument as a string. |
void |
validateArgumentValues(com.crystaldecisions.reports.formulas.FormulaValueReference[] arguments)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.crystaldecisions.reports.formulas.FormulaFunction |
|---|
evaluate |
| Methods inherited from interface com.crystaldecisions.reports.formulas.FormulaFunctionDefinition |
|---|
getArguments, getIdentifier, getReturnType |
| Constructor Detail |
|---|
public AbstractAccpacFormulaFunction()
| Method Detail |
|---|
public void validateArgumentValues(com.crystaldecisions.reports.formulas.FormulaValueReference[] arguments)
throws com.crystaldecisions.reports.formulas.FormulaFunctionCallException
validateArgumentValues in interface com.crystaldecisions.reports.formulas.FormulaFunctioncom.crystaldecisions.reports.formulas.FormulaFunctionCallException
protected java.lang.String getStringArgument(com.crystaldecisions.reports.formulas.FormulaValueReference[] arguments,
int i,
boolean allowNull)
throws com.crystaldecisions.reports.formulas.FormulaFunctionCallException
Returns the specified Crystal formula argument as a string. Also does validation that the index exists, that the argument is of the correct type, and if a null value isn't allowed, validates that the argument's value is non-null.
NOTE: This method assumes that it is called during the execution of
evaluate. At
this point, validateArgumentValues(FormulaValueReference[])
should have already been called, so it has already checked that the number
of arguments is correct (and thus has checked that the arguments
parameter is non-null).
arguments - The non-null array of argument values.i - The 0-based index of the argument in question.allowNull - Whether or not a null argument value is valid. (Note that an
empty string is NOT null.)
com.crystaldecisions.reports.formulas.FormulaFunctionCallException - The function call failed due to invalid external input.
protected int getIntegerArgument(com.crystaldecisions.reports.formulas.FormulaValueReference[] arguments,
int i)
throws com.crystaldecisions.reports.formulas.FormulaFunctionCallException
Returns the specified Crystal formula argument as an integer (primitive int type). Also does validation that the index exists, that the argument is of the correct type, and if a null value isn't allowed, validates that the argument's value is non-null.
NOTE: This method assumes that it is called during the execution of
evaluate. At
this point, validateArgumentValues(FormulaValueReference[])
should have already been called, so it has already checked that the number
of arguments is correct (and thus has checked that the arguments
parameter is non-null).
arguments - The non-null array of argument values.i - The 0-based index of the argument in question.
com.crystaldecisions.reports.formulas.FormulaFunctionCallException - The function call failed due to invalid external input.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||