public class Form extends BaseChangeableOpenmrsMetadata
| Modifier and Type | Field and Description | 
|---|---|
static long | 
serialVersionUID  | 
| Constructor and Description | 
|---|
Form()
default constructor 
 | 
Form(Integer formId)
Constructor with id
 Should set formId with given parameter 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addFormField(FormField formField)
Adds a FormField to the list of form fields 
 | 
Integer | 
getBuild()  | 
EncounterType | 
getEncounterType()  | 
Set<FormField> | 
getFormFields()  | 
Integer | 
getFormId()  | 
Integer | 
getId()  | 
List<FormField> | 
getOrderedFormFields()  | 
Boolean | 
getPublished()  | 
String | 
getVersion()  | 
void | 
removeFormField(FormField formField)
Removes a FormField from the list of form fields 
 | 
void | 
setBuild(Integer build)  | 
void | 
setEncounterType(EncounterType encounterType)  | 
void | 
setFormFields(Set<FormField> formFields)  | 
void | 
setFormId(Integer formId)  | 
void | 
setId(Integer id)  | 
void | 
setPublished(Boolean published)  | 
void | 
setVersion(String version)  | 
String | 
toString()
Returns a string equal to the value of: ClassName{hashCode=...,
 uuid=...} 
 | 
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReasonequals, getUuid, hashCode, setUuidclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetUuid, setUuidpublic static final long serialVersionUID
public Form()
public Form(Integer formId)
public Integer getFormId()
public void setFormId(Integer formId)
formId - The formId to set.public String getVersion()
public void setVersion(String version)
version - The version to set.public Integer getBuild()
public void setBuild(Integer build)
build - The build number to setpublic Boolean getPublished()
public void setPublished(Boolean published)
published - The published to set.public EncounterType getEncounterType()
public void setEncounterType(EncounterType encounterType)
encounterType - type of encounter associated with this formpublic void setFormFields(Set<FormField> formFields)
formFields - The formFields to set.public void addFormField(FormField formField)
formField - FormField to be addedpublic void removeFormField(FormField formField)
formField - FormField to be removedpublic String toString()
BaseOpenmrsObjectClassName{hashCode=..., uuid=...}
 If the uuid field is null, it returns: 
ClassName{hashCode=...}Should include hashCode if uuid is null Should include uuid if not null
toString in class BaseOpenmrsObjectpublic 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.