public class ParameterType
extends java.lang.Object
Constructor and Description |
---|
ParameterType(java.lang.String name,
java.lang.Class<?> type,
boolean required)
The constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Used to get the name of the parameter
|
java.lang.Class<?> |
getType()
Used to get the type of the parameter
|
boolean |
isRequired()
Return true if the parameter is required
|
void |
setName(java.lang.String name)
Used to set the name of the parameter
|
void |
setRequired(boolean required)
Used to set if a parameter is required
|
void |
setType(java.lang.Class<?> type)
Used to get the type of the parameter
|
public ParameterType(java.lang.String name, java.lang.Class<?> type, boolean required)
name
- The name of the parametertype
- The type of the parameterrequired
- Used to indercate if the parameter is requiredpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name of the parameterpublic java.lang.Class<?> getType()
public void setType(java.lang.Class<?> type)
type
- the type of the parameterpublic boolean isRequired()
public void setRequired(boolean required)
required
- true if the parameter is required