@Deprecated
public class Parameter
extends java.lang.Object
If an object is parameterizable, it is willing to accept a parameter like this. Examples of a parameter would be "What start date do you want to use?" The value of the parameter would be plugged in when the object is evaluated.
LogicCriteria
,
Parameterizable
Constructor and Description |
---|
Parameter()
Deprecated.
Default constructor
|
Parameter(java.lang.String name,
java.lang.String label,
java.lang.Class<?> clazz,
java.lang.Object defaultValue)
Deprecated.
Initialize this Parameter with the given values
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getClazz()
Deprecated.
|
java.lang.Object |
getDefaultValue()
Deprecated.
|
java.lang.String |
getLabel()
Deprecated.
|
java.lang.String |
getName()
Deprecated.
|
boolean |
isRequired()
Deprecated.
Whether or not this parameter "must" be filled in by a value
|
void |
setClazz(java.lang.Class<?> clazz)
Deprecated.
|
void |
setDefaultValue(java.lang.Object defaultValue)
Deprecated.
|
void |
setLabel(java.lang.String label)
Deprecated.
|
void |
setName(java.lang.String name)
Deprecated.
|
public Parameter()
public Parameter(java.lang.String name, java.lang.String label, java.lang.Class<?> clazz, java.lang.Object defaultValue)
name
- The defined descriptive namelabel
- The label to display to the user if value is neededclazz
- The data type of this parameterdefaultValue
- The value to fill in if nothing provided by the userpublic boolean isRequired()
public java.lang.Class<?> getClazz()
public void setClazz(java.lang.Class<?> clazz)
public java.lang.Object getDefaultValue()
public void setDefaultValue(java.lang.Object defaultValue)
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public java.lang.String getName()
public void setName(java.lang.String name)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.