public class Form extends BaseOpenmrsMetadata implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
Form()
default constructor
|
Form(java.lang.Integer formId)
Constructor with id
|
Modifier and Type | Method and Description |
---|---|
void |
addFormField(FormField formField)
Adds a FormField to the list of form fields
|
java.lang.Integer |
getBuild() |
EncounterType |
getEncounterType() |
java.util.Set<FormField> |
getFormFields() |
java.lang.Integer |
getFormId() |
java.lang.Integer |
getId() |
java.util.List<FormField> |
getOrderedFormFields() |
java.lang.Boolean |
getPublished() |
java.lang.String |
getRetiredReason()
Deprecated.
|
java.lang.String |
getTemplate()
Deprecated.
|
java.lang.String |
getVersion() |
java.lang.String |
getXslt()
Deprecated.
|
void |
removeFormField(FormField formField)
Removes a FormField from the list of form fields
|
void |
setBuild(java.lang.Integer build) |
void |
setEncounterType(EncounterType encounterType) |
void |
setFormFields(java.util.Set<FormField> formFields) |
void |
setFormId(java.lang.Integer formId) |
void |
setId(java.lang.Integer id) |
void |
setPublished(java.lang.Boolean published) |
void |
setRetiredReason(java.lang.String reason)
Deprecated.
|
void |
setTemplate(java.lang.String template)
Deprecated.
|
void |
setVersion(java.lang.String version) |
void |
setXslt(java.lang.String xslt)
Deprecated.
|
java.lang.String |
toString()
Returns a string consisting of the name of the class of which the object is an instance and
the
uuid field surrounded by [ and ] . |
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
public Form()
public Form(java.lang.Integer formId)
public java.lang.Integer getFormId()
public void setFormId(java.lang.Integer formId)
formId
- The formId to set.public java.lang.String getVersion()
public void setVersion(java.lang.String version)
version
- The version to set.public java.lang.Integer getBuild()
public void setBuild(java.lang.Integer build)
build
- The build number to setpublic java.lang.Boolean getPublished()
public void setPublished(java.lang.Boolean published)
published
- The published to set.public EncounterType getEncounterType()
public void setEncounterType(EncounterType encounterType)
encounterType
- type of encounter associated with this form@Deprecated public java.lang.String getTemplate()
@Deprecated public void setTemplate(java.lang.String template)
template
- The template to set.@Deprecated public java.lang.String getXslt()
@Deprecated public void setXslt(java.lang.String xslt)
xslt
- the xslt to set.public java.util.Set<FormField> getFormFields()
public java.util.List<FormField> getOrderedFormFields()
public void setFormFields(java.util.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 java.lang.String toString()
BaseOpenmrsObject
uuid
field surrounded by [
and ]
. In other words,
this method returns a string equal to the value of: getClass().getName() + '[' + uuid + ']'
If the uuid
field is null
, it delegates to
Object.toString()
toString
in class BaseOpenmrsObject
Object.toString()
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)
@Deprecated public void setRetiredReason(java.lang.String reason)
BaseOpenmrsMetadata.setRetireReason(String)
@Deprecated public java.lang.String getRetiredReason()
BaseOpenmrsMetadata.getRetireReason()
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.