org.openmrs
Class PersonAttributeType
java.lang.Object
org.openmrs.BaseOpenmrsObject
org.openmrs.BaseOpenmrsMetadata
org.openmrs.PersonAttributeType
- All Implemented Interfaces:
- java.io.Serializable, Auditable, OpenmrsMetadata, OpenmrsObject, Retireable
public class PersonAttributeType
- extends BaseOpenmrsMetadata
- implements java.io.Serializable
PersonAttributeType
- See Also:
- Serialized Form
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
PersonAttributeType
public PersonAttributeType()
- default constructor
PersonAttributeType
public PersonAttributeType(java.lang.Integer myPersonAttributeTypeId)
- constructor with id
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
- See Also:
Object.hashCode()
equals
public boolean equals(java.lang.Object obj)
- Compares two objects for similarity
- Overrides:
equals
in class java.lang.Object
- Parameters:
obj
-
- Returns:
- boolean true/false whether or not they are the same objects
getFormat
public java.lang.String getFormat()
- Returns:
- Returns the format.
setFormat
public void setFormat(java.lang.String format)
- Parameters:
format
- The format to set.
getForeignKey
public java.lang.Integer getForeignKey()
- Returns:
- the foreignKey
setForeignKey
public void setForeignKey(java.lang.Integer foreignKey)
- Parameters:
foreignKey
- the foreignKey to set
getSortWeight
public java.lang.Double getSortWeight()
- Returns:
- the sortWeight
setSortWeight
public void setSortWeight(java.lang.Double sortWeight)
- Parameters:
sortWeight
- the formOrder to set
getPersonAttributeTypeId
public java.lang.Integer getPersonAttributeTypeId()
- Returns:
- Returns the PersonAttributeTypeId.
setPersonAttributeTypeId
public void setPersonAttributeTypeId(java.lang.Integer newPersonAttributeTypeId)
- Parameters:
newPersonAttributeTypeId
- The PersonAttributeTypeId to set.
isSearchable
public java.lang.Boolean isSearchable()
- Returns:
- the searchable status
getSearchable
public java.lang.Boolean getSearchable()
- Returns:
- the searchable status
setSearchable
public void setSearchable(java.lang.Boolean searchable)
- Parameters:
searchable
- the searchable to set
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
getEditPrivilege
public Privilege getEditPrivilege()
- The privilege required in order to edit this attribute
- Returns:
- Returns the required privilege
- Since:
- 1.5
setEditPrivilege
public void setEditPrivilege(Privilege editPrivilege)
- The privilege required in order to edit this attribute If
editPrivilege
is null,
no extra permissions are required to edit this type
- Parameters:
editPrivilege
- - Since:
- 1.5
getId
public java.lang.Integer getId()
- Specified by:
getId
in interface OpenmrsObject
- Returns:
- id - The unique Identifier for the object
- Since:
- 1.5
- See Also:
OpenmrsObject.getId()
setId
public void setId(java.lang.Integer id)
- Specified by:
setId
in interface OpenmrsObject
- Parameters:
id
- - The unique Identifier for the object- Since:
- 1.5
- See Also:
OpenmrsObject.setId(java.lang.Integer)
Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change