public class PersonAttributeType extends BaseOpenmrsMetadata implements Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
PersonAttributeType()
default constructor
|
PersonAttributeType(Integer myPersonAttributeTypeId)
constructor with id
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares two objects for similarity
|
Privilege |
getEditPrivilege()
The privilege required in order to edit this attribute
|
Integer |
getForeignKey() |
String |
getFormat() |
Integer |
getId() |
Integer |
getPersonAttributeTypeId() |
Boolean |
getSearchable() |
Double |
getSortWeight() |
int |
hashCode() |
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(Integer foreignKey) |
void |
setFormat(String format) |
void |
setId(Integer id) |
void |
setPersonAttributeTypeId(Integer newPersonAttributeTypeId) |
void |
setSearchable(Boolean searchable) |
void |
setSortWeight(Double sortWeight) |
String |
toString() |
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason
getUuid, setUuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
public PersonAttributeType()
public PersonAttributeType(Integer myPersonAttributeTypeId)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
public String getFormat()
public void setFormat(String format)
format
- The format to set.public Integer getForeignKey()
public void setForeignKey(Integer foreignKey)
foreignKey
- the foreignKey to setpublic Double getSortWeight()
public void setSortWeight(Double sortWeight)
sortWeight
- the formOrder to setpublic Integer getPersonAttributeTypeId()
public void setPersonAttributeTypeId(Integer newPersonAttributeTypeId)
newPersonAttributeTypeId
- The PersonAttributeTypeId to set.public Boolean isSearchable()
public Boolean getSearchable()
public void setSearchable(Boolean searchable)
searchable
- the searchable to setpublic String toString()
toString
in class Object
Object.toString()
public Privilege getEditPrivilege()
public void setEditPrivilege(Privilege editPrivilege)
editPrivilege
is null,
no extra permissions are required to edit this typeeditPrivilege
- public Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.