public class DefaultRequiredField extends Object implements RequiredField
RequiredField
Modifier and Type | Class and Description |
---|---|
static class |
DefaultRequiredField.RegisterPersistence |
Constructor and Description |
---|
DefaultRequiredField() |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeSorted() |
boolean |
canBeTemporal() |
RequiredField |
clone() |
String |
getDescription()
Get a description about what the fields represents
|
String |
getName()
Gets the name of the RequiredField to identify it
|
String |
getTemporalInterval() |
DataType |
getType()
Get the type of the data that this field will contain.
|
DataType |
getType(String type) |
String |
getValue()
Gets the value to the field
|
boolean |
isNumeric()
Check if the data has only numerical data
|
boolean |
isOptional()
Check if the data is optional in the data definition of the
ChartDataSet |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setCanBeSorted(boolean b) |
void |
setCanBeTemporal(boolean b) |
void |
setDescription(String description)
Sets a description to the RequiredField
|
void |
setIsNumeric(boolean isNum)
Set the flag of the field to optional or not
|
void |
setIsOptional(boolean b)
Set the flag of the field to optional or not
|
void |
setName(String name)
Establish a name to the RequiredField
|
void |
setTemporalInterval(String temporalInterval2) |
void |
setType(String type)
Sets a Datatype to the content data represented by this field
|
void |
setValue(String value)
Sets the value to the field
|
public String getName()
RequiredField
getName
in interface RequiredField
public void setName(String name)
RequiredField
setName
in interface RequiredField
public String getDescription()
RequiredField
getDescription
in interface RequiredField
public void setDescription(String description)
RequiredField
setDescription
in interface RequiredField
public DataType getType()
RequiredField
getType
in interface RequiredField
DataType
of the data contained.public void setType(String type)
RequiredField
setType
in interface RequiredField
public void setValue(String value)
RequiredField
setValue
in interface RequiredField
public String getValue()
RequiredField
getValue
in interface RequiredField
public boolean isNumeric()
RequiredField
isNumeric
in interface RequiredField
public void setIsNumeric(boolean isNum)
RequiredField
setIsNumeric
in interface RequiredField
public void setIsOptional(boolean b)
RequiredField
setIsOptional
in interface RequiredField
public boolean isOptional()
RequiredField
ChartDataSet
isOptional
in interface RequiredField
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public RequiredField clone()
clone
in interface RequiredField
clone
in class Object
public void setTemporalInterval(String temporalInterval2)
setTemporalInterval
in interface RequiredField
public String getTemporalInterval()
getTemporalInterval
in interface RequiredField
public boolean canBeTemporal()
canBeTemporal
in interface RequiredField
public void setCanBeTemporal(boolean b)
setCanBeTemporal
in interface RequiredField
public void setCanBeSorted(boolean b)
setCanBeSorted
in interface RequiredField
public boolean canBeSorted()
canBeSorted
in interface RequiredField