Class FunctionParameter
java.lang.Object
com.appiancorp.suiteapi.expression.FunctionParameter
- All Implemented Interfaces:
Serializable
This class represents a parameter of a function in the Expression Editor. The attributes type and typename are mutually exclusive. Typename is used to reference types that are not base primitive types with a known id.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionParameter(Method method, int methodParameterIndex, Name name, Parameter param, int type) Create a FunctionParameter using a type id.FunctionParameter(Method method, int methodParameterIndex, Name name, Parameter param, String systemTypename) Create a FunctionParameter using a name for the type of the parameter instead of a type id. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the description of parameterGets the enumeration name for this parameter.getName()Gets the name of parameterGets the Typename of the parameter.intgetType()Gets the Type of the parameter.inthashCode()booleanIndicates whether the parameter is required as an input to the functionbooleanIndicates whether this function parameter is translatable or not.booleanIndicates whether this parameter may have an unlimited number of entries.voidsetDescription(String description) Sets the description of parametervoidsetEnumeration(String enumeration) Sets the enumeration name for this parameter.voidSets the name of parametervoidsetRequired(boolean required) Sets whether the parameter is required as an input to the functionvoidsetSystemTypename(String systemTypename) Sets the Typename of the parameter.voidsetTranslatable(boolean translatable) Sets whether this function parameter is translatable or not.voidsetType(int type) Sets the Type of the parameter.voidsetUnlimited(boolean isUnlimited) Sets whether this function parameter can take an unlimited number of entries.toString()
-
Constructor Details
-
FunctionParameter
public FunctionParameter() -
FunctionParameter
-
FunctionParameter
public FunctionParameter(Method method, int methodParameterIndex, Name name, Parameter param, int type) Create a FunctionParameter using a type id. Use this constructor when the parameter type is a built-in system type such as Integer or String.- See Also:
-
FunctionParameter
public FunctionParameter(Method method, int methodParameterIndex, Name name, Parameter param, String systemTypename) Create a FunctionParameter using a name for the type of the parameter instead of a type id. Use this contructor when the parameter type is not a built-in system type like Integer or Text.- See Also:
-
-
Method Details
-
getDescription
Gets the description of parameter- Returns:
- the string description of the parameter
-
setDescription
Sets the description of parameter- Parameters:
description- the string description of the parameter
-
getName
Gets the name of parameter- Returns:
- the name of the parameter
-
setName
Sets the name of parameter- Parameters:
name- the name of parameter
-
isRequired
public boolean isRequired()Indicates whether the parameter is required as an input to the function- Returns:
trueorfalseif the parameter is required or not.
-
setRequired
public void setRequired(boolean required) Sets whether the parameter is required as an input to the function- Parameters:
required-trueorfalseif the parameter is required or not.
-
getType
public int getType()Gets the Type of the parameter. This will match one of the types inTypedVariable- Returns:
- the Type of the parameter
- See Also:
-
setType
public void setType(int type) Sets the Type of the parameter. This must match one of the types inTypedVariable- Parameters:
type- the Type of the parameter- See Also:
-
getSystemTypename
Gets the Typename of the parameter. This value is empty is the type was provided using its ID.- Returns:
- The Typename of the parameter
-
setSystemTypename
Sets the Typename of the parameter. -
isUnlimited
public boolean isUnlimited()Indicates whether this parameter may have an unlimited number of entries. -
setUnlimited
public void setUnlimited(boolean isUnlimited) Sets whether this function parameter can take an unlimited number of entries. This value cannot be updated on the server.- See Also:
-
isTranslatable
public boolean isTranslatable()Indicates whether this function parameter is translatable or not. -
setTranslatable
public void setTranslatable(boolean translatable) Sets whether this function parameter is translatable or not.- See Also:
-
getEnumeration
Gets the enumeration name for this parameter.- Returns:
- the enumeration name, or null if no enumeration is specified
-
setEnumeration
Sets the enumeration name for this parameter.- Parameters:
enumeration- the enumeration name, or null for no enumeration
-
toString
-
hashCode
public int hashCode() -
equals
-