public class PersonAttributeType extends BaseOpenmrsMetadata implements java.io.Serializable, java.lang.Comparable<PersonAttributeType>
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
PersonAttributeType()
default constructor
|
PersonAttributeType(java.lang.Integer myPersonAttributeTypeId)
constructor with id
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PersonAttributeType other) |
Privilege |
getEditPrivilege()
The privilege required in order to edit this attribute
|
java.lang.Integer |
getForeignKey() |
java.lang.String |
getFormat() |
java.lang.Integer |
getId() |
java.lang.Integer |
getPersonAttributeTypeId() |
java.lang.Boolean |
getSearchable() |
java.lang.Double |
getSortWeight() |
java.lang.Boolean |
isSearchable() |
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 |
void |
setForeignKey(java.lang.Integer foreignKey) |
void |
setFormat(java.lang.String format) |
void |
setId(java.lang.Integer id) |
void |
setPersonAttributeTypeId(java.lang.Integer newPersonAttributeTypeId) |
void |
setSearchable(java.lang.Boolean searchable) |
void |
setSortWeight(java.lang.Double sortWeight) |
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 PersonAttributeType()
public PersonAttributeType(java.lang.Integer myPersonAttributeTypeId)
public java.lang.String getFormat()
public void setFormat(java.lang.String format)
format
- The format to set.public java.lang.Integer getForeignKey()
public void setForeignKey(java.lang.Integer foreignKey)
foreignKey
- the foreignKey to setpublic java.lang.Double getSortWeight()
public void setSortWeight(java.lang.Double sortWeight)
sortWeight
- the formOrder to setpublic java.lang.Integer getPersonAttributeTypeId()
public void setPersonAttributeTypeId(java.lang.Integer newPersonAttributeTypeId)
newPersonAttributeTypeId
- The PersonAttributeTypeId to set.public java.lang.Boolean isSearchable()
public java.lang.Boolean getSearchable()
public void setSearchable(java.lang.Boolean searchable)
searchable
- the searchable to setpublic 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 Privilege getEditPrivilege()
public void setEditPrivilege(Privilege editPrivilege)
editPrivilege
is null,
no extra permissions are required to edit this typeeditPrivilege
- 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)
public int compareTo(PersonAttributeType other)
compareTo
in interface java.lang.Comparable<PersonAttributeType>
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.