public class Field extends BaseOpenmrsMetadata implements Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
Field()
default constructor
|
Field(Integer fieldId)
constructor with id
|
Modifier and Type | Method and Description |
---|---|
void |
addAnswer(FieldAnswer fieldAnswer)
Adds a field answer to the list of field answers
|
boolean |
equals(Object obj)
Compares two Field objects for similarity
|
Set<FieldAnswer> |
getAnswers() |
String |
getAttributeName() |
Concept |
getConcept() |
String |
getDefaultValue() |
Integer |
getFieldId() |
FieldType |
getFieldType() |
Set<Form> |
getForms()
Deprecated.
This method always returns null. Forms that a Field is on are managed through the
FormField object |
Integer |
getId() |
Boolean |
getSelectMultiple() |
String |
getTableName() |
int |
hashCode() |
Boolean |
isSelectMultiple() |
void |
removeAnswer(FieldAnswer fieldAnswer)
Removes a field answer from the list of field answers
|
void |
setAnswers(Set<FieldAnswer> fieldAnswers) |
void |
setAttributeName(String attributeName) |
void |
setConcept(Concept concept) |
void |
setDefaultValue(String defaultValue) |
void |
setFieldId(Integer fieldId) |
void |
setFieldType(FieldType fieldType) |
void |
setForms(Set<Form> forms)
Deprecated.
This method does nothing. Forms that a Field is on are managed through the
FormField object |
void |
setId(Integer id) |
void |
setSelectMultiple(Boolean selectMultiple) |
void |
setTableName(String tableName) |
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason
getUuid, setUuid
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
public Field()
public Field(Integer fieldId)
public boolean equals(Object obj)
public Integer getFieldId()
public void setFieldId(Integer fieldId)
fieldId
- The fieldId to set.public FieldType getFieldType()
public void setFieldType(FieldType fieldType)
fieldType
- The fieldType to set.public Concept getConcept()
public void setConcept(Concept concept)
concept
- The concept to set.public String getTableName()
public void setTableName(String tableName)
tableName
- The tableName to set.public String getAttributeName()
public void setAttributeName(String attributeName)
attributeName
- The attributeName to set.public String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue
- The defaultValue to set.public Boolean isSelectMultiple()
public Boolean getSelectMultiple()
public void setSelectMultiple(Boolean selectMultiple)
selectMultiple
- The selectMultiple to set.public Set<FieldAnswer> getAnswers()
public void setAnswers(Set<FieldAnswer> fieldAnswers)
fieldAnswers
- The fieldAnswers to set.public void addAnswer(FieldAnswer fieldAnswer)
fieldAnswer
- FieldAnswer to be addedpublic void removeAnswer(FieldAnswer fieldAnswer)
fieldAnswer
- FieldAnswer to be removed@Deprecated public Set<Form> getForms()
FormField
object@Deprecated public void setForms(Set<Form> forms)
FormField
objectpublic Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.