public class VariableDefinition
extends Object
| Constructor and Description |
|---|
VariableDefinition() |
| Modifier and Type | Method and Description |
|---|---|
VariableDefinition |
dataType(DataTypeEnum dataType)
Returns a VariableDefinition instance initialized with dataType
|
boolean |
equals(Object o) |
DataTypeEnum |
getDataType()
Data type of the variable
|
Integer |
getLength()
The max length of the variable's value.
|
String |
getName()
Name of the variable
|
String |
getUnit()
Unit of measurement
|
int |
hashCode() |
Boolean |
isSearchable()
Indicates whether sorting and filtering is allowed on this variable.
|
VariableDefinition |
length(Integer length)
Returns a VariableDefinition instance initialized with length
|
VariableDefinition |
name(String name)
Returns a VariableDefinition instance initialized with name
|
VariableDefinition |
searchable(Boolean searchable)
Returns a VariableDefinition instance initialized with searchable
|
void |
setDataType(DataTypeEnum dataType) |
void |
setLength(Integer length) |
void |
setName(String name) |
void |
setSearchable(Boolean searchable) |
void |
setUnit(String unit) |
String |
toString() |
VariableDefinition |
unit(String unit)
Returns a VariableDefinition instance initialized with unit
|
public VariableDefinition name(String name)
name - name to be associated with VariableDefinitionpublic String getName()
public void setName(String name)
public VariableDefinition dataType(DataTypeEnum dataType)
dataType - dataType to be associated with VariableDefinition (String, int, double etc)public DataTypeEnum getDataType()
public void setDataType(DataTypeEnum dataType)
public VariableDefinition unit(String unit)
unit - unit to be associated with VariableDefinitionpublic String getUnit()
public void setUnit(String unit)
public VariableDefinition searchable(Boolean searchable)
searchable - searchable to be associated with VariableDefinitionpublic Boolean isSearchable()
public void setSearchable(Boolean searchable)
public VariableDefinition length(Integer length)
length - length to be associated with VariableDefinitionpublic Integer getLength()
public void setLength(Integer length)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object