org.openmrs
Class PersonAttributeType

java.lang.Object
  extended by org.openmrs.BaseOpenmrsObject
      extended by org.openmrs.BaseOpenmrsMetadata
          extended by 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

Field Summary
static long serialVersionUID
           
 
Constructor Summary
PersonAttributeType()
          default constructor
PersonAttributeType(java.lang.Integer myPersonAttributeTypeId)
          constructor with id
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares two objects for similarity
 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()
           
 int hashCode()
           
 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()
           
 
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 org.openmrs.BaseOpenmrsObject
getUuid, setUuid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openmrs.OpenmrsObject
getUuid, setUuid
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

PersonAttributeType

public PersonAttributeType()
default constructor


PersonAttributeType

public PersonAttributeType(java.lang.Integer myPersonAttributeTypeId)
constructor with id

Method Detail

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)

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change