public class Field extends BaseChangeableOpenmrsMetadata
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
|
Set<FieldAnswer> |
getAnswers() |
String |
getAttributeName() |
Concept |
getConcept() |
String |
getDefaultValue() |
Integer |
getFieldId() |
FieldType |
getFieldType() |
Integer |
getId() |
Boolean |
getSelectMultiple() |
String |
getTableName() |
Boolean |
isSelectMultiple()
Deprecated.
as of 2.0, use
getSelectMultiple() |
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 |
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
equals, getUuid, hashCode, setUuid, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
public Field()
public Field(Integer fieldId)
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.@Deprecated public Boolean isSelectMultiple()
getSelectMultiple()
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 removedpublic Integer getId()
OpenmrsObject.getId()
public void setId(Integer id)
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2024 OpenMRS Inc.. All rights reserved.