public class FunctionParameter
extends java.lang.Object
implements java.io.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.
Constructor and Description |
---|
FunctionParameter() |
FunctionParameter(FunctionParameter fp) |
FunctionParameter(java.lang.reflect.Method method,
int methodParameterIndex,
Name name,
Parameter param,
int type)
Create a FunctionParameter using a type id.
|
FunctionParameter(java.lang.reflect.Method method,
int methodParameterIndex,
Name name,
Parameter param,
java.lang.String systemTypename)
Create a FunctionParameter using a name for the type of the parameter instead of a type id.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
Gets the description of parameter
|
java.lang.String |
getName()
Gets the name of parameter
|
java.lang.String |
getSystemTypename()
Gets the Typename of the parameter.
|
int |
getType()
Gets the Type of the parameter.
|
int |
hashCode() |
boolean |
isRequired()
Indicates whether the parameter is required as an input to the function
|
boolean |
isUnlimited()
Indicates whether this parameter may have an unlimited number of entries.
|
void |
setDescription(java.lang.String description)
Sets the description of parameter
|
void |
setName(java.lang.String name)
Sets the name of parameter
|
void |
setRequired(boolean required)
Sets whether the parameter is required as an input to the function
|
void |
setSystemTypename(java.lang.String systemTypename)
Sets the Typename of the parameter.
|
void |
setType(int type)
Sets the Type of the parameter.
|
void |
setUnlimited(boolean isUnlimited)
Sets whether this function parameter can take an unlimited number of entries.
|
java.lang.String |
toString() |
public FunctionParameter()
public FunctionParameter(FunctionParameter fp)
public FunctionParameter(java.lang.reflect.Method method, int methodParameterIndex, Name name, Parameter param, int type)
AppianType
public FunctionParameter(java.lang.reflect.Method method, int methodParameterIndex, Name name, Parameter param, java.lang.String systemTypename)
AppianType
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the string description of the parameterpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name of parameterpublic boolean isRequired()
true
or false
if the parameter is required or not.public void setRequired(boolean required)
required
- true
or false
if the parameter is required or not.public int getType()
TypedVariable
TypedVariable
public void setType(int type)
TypedVariable
type
- the Type of the parameterTypedVariable
public java.lang.String getSystemTypename()
public void setSystemTypename(java.lang.String systemTypename)
public boolean isUnlimited()
public void setUnlimited(boolean isUnlimited)
isUnlimited
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.