|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.BaseOpenmrsObject org.openmrs.BaseOpenmrsMetadata org.openmrs.Field
public class Field
Field
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
Field()
default constructor |
|
Field(java.lang.Integer fieldId)
constructor with id |
Method Summary | |
---|---|
void |
addAnswer(FieldAnswer fieldAnswer)
Adds a field answer to the list of field answers |
boolean |
equals(java.lang.Object obj)
Compares two Field objects for similarity |
java.util.Set<FieldAnswer> |
getAnswers()
|
java.lang.String |
getAttributeName()
|
Concept |
getConcept()
|
java.lang.String |
getDefaultValue()
|
java.lang.Integer |
getFieldId()
|
FieldType |
getFieldType()
|
java.util.Set<Form> |
getForms()
Deprecated. This method always returns null. Forms that a Field is on are managed through the FormField object |
java.lang.Integer |
getId()
|
java.lang.Boolean |
getSelectMultiple()
|
java.lang.String |
getTableName()
|
int |
hashCode()
|
java.lang.Boolean |
isSelectMultiple()
|
void |
removeAnswer(FieldAnswer fieldAnswer)
Removes a field answer from the list of field answers |
void |
setAnswers(java.util.Set<FieldAnswer> fieldAnswers)
|
void |
setAttributeName(java.lang.String attributeName)
|
void |
setConcept(Concept concept)
|
void |
setDefaultValue(java.lang.String defaultValue)
|
void |
setFieldId(java.lang.Integer fieldId)
|
void |
setFieldType(FieldType fieldType)
|
void |
setForms(java.util.Set<Form> forms)
Deprecated. This method does nothing. Forms that a Field is on are managed through the FormField object |
void |
setId(java.lang.Integer id)
|
void |
setSelectMultiple(java.lang.Boolean selectMultiple)
|
void |
setTableName(java.lang.String tableName)
|
Methods inherited from class org.openmrs.BaseOpenmrsMetadata |
---|
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason |
Methods inherited from class org.openmrs.BaseOpenmrsObject |
---|
getUuid, setUuid |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openmrs.OpenmrsObject |
---|
getUuid, setUuid |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public Field()
public Field(java.lang.Integer fieldId)
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
-
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Integer getFieldId()
public void setFieldId(java.lang.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 java.lang.String getTableName()
public void setTableName(java.lang.String tableName)
tableName
- The tableName to set.public java.lang.String getAttributeName()
public void setAttributeName(java.lang.String attributeName)
attributeName
- The attributeName to set.public java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String defaultValue)
defaultValue
- The defaultValue to set.public java.lang.Boolean isSelectMultiple()
public java.lang.Boolean getSelectMultiple()
public void setSelectMultiple(java.lang.Boolean selectMultiple)
selectMultiple
- The selectMultiple to set.public java.util.Set<FieldAnswer> getAnswers()
public void setAnswers(java.util.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 java.util.Set<Form> getForms()
FormField
object
@Deprecated public void setForms(java.util.Set<Form> forms)
FormField
object
public java.lang.Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(java.lang.Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |