|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.BaseOpenmrsObject org.openmrs.ConceptNameTag
public class ConceptNameTag
ConceptNameTag is a textual tag which can be applied to a ConceptName.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT
Name to use when nothing else is available. |
static java.lang.String |
PREFERRED
Preferred name for a language. |
static long |
serialVersionUID
|
static java.lang.String |
SHORT
Short name for a concept. |
static java.lang.String |
SYNONYM
A different word with similar meaning. |
Constructor Summary | |
---|---|
ConceptNameTag()
Default constructor. |
|
ConceptNameTag(java.lang.String tag,
java.lang.String description)
Public constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
User |
getChangedBy()
Not currently used. |
java.lang.Integer |
getConceptNameTagId()
|
User |
getCreator()
|
java.util.Date |
getDateChanged()
Not currently used. |
java.util.Date |
getDateCreated()
|
java.util.Date |
getDateVoided()
Returns the Date this ConceptName was voided. |
java.lang.String |
getDescription()
Returns the description of this tag. |
java.lang.Integer |
getId()
|
java.lang.String |
getTag()
Returns the textual representation of this ConceptNameTag. |
java.lang.Boolean |
getVoided()
Returns whether the ConceptName has been voided. |
User |
getVoidedBy()
Returns the User who voided this ConceptName. |
java.lang.String |
getVoidReason()
Returns the reason this ConceptName was voided. |
int |
hashCode()
|
java.lang.Boolean |
isVoided()
Returns whether the ConceptName has been voided. |
static ConceptNameTag |
preferredCountryTagFor(java.util.Locale locale)
A factory method which generates a preferred country tag from the country-code portion of a locale. |
static ConceptNameTag |
preferredCountryTagFor(java.lang.String country)
A factory method that generates strings for preferred country tags. |
static ConceptNameTag |
preferredLanguageTagFor(java.util.Locale locale)
A factory method for generating a tag which indicates that a name is the preferred term within a particular language. |
static ConceptNameTag |
preferredLanguageTagFor(java.lang.String language)
A factory method that generates strings for preferred language tags. |
void |
setChangedBy(User changedBy)
Not currently used. |
void |
setConceptNameTagId(java.lang.Integer conceptNameTagId)
|
void |
setCreator(User creator)
|
void |
setDateChanged(java.util.Date dateChanged)
Not currently used. |
void |
setDateCreated(java.util.Date dateCreated)
|
void |
setDateVoided(java.util.Date dateVoided)
Sets the Data this ConceptName was voided. |
void |
setDescription(java.lang.String description)
Sets the description of this tag. |
void |
setId(java.lang.Integer id)
|
void |
setTag(java.lang.String tag)
Sets the textual representation of this ConceptNametag. |
void |
setVoided(java.lang.Boolean voided)
Sets the voided status of the ConceptName. |
void |
setVoidedBy(User voidedBy)
Sets the User who voided this ConceptName. |
void |
setVoidReason(java.lang.String voidReason)
Sets the reason this ConceptName was voided. |
static ConceptNameTag |
shortCountryTagFor(java.util.Locale locale)
Method that generates a concept name tag based on a specified locale's country code. |
static ConceptNameTag |
shortCountryTagFor(java.lang.String country)
A factory method that generates strings for short country tags. |
static ConceptNameTag |
shortLanguageTagFor(java.util.Locale locale)
Method that generates a concept name tag based on a specific locale's language. |
static ConceptNameTag |
shortLanguageTagFor(java.lang.String language)
A factory method that generates strings for short language tags. |
java.lang.String |
toString()
|
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 |
---|
public static final long serialVersionUID
public static final java.lang.String DEFAULT
public static final java.lang.String SHORT
public static final java.lang.String SYNONYM
public static final java.lang.String PREFERRED
Constructor Detail |
---|
public ConceptNameTag()
public ConceptNameTag(java.lang.String tag, java.lang.String description)
tag
- description
- Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getTag()
public void setTag(java.lang.String tag)
tag
- the textual representationpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- public User getCreator()
getCreator
in interface Auditable
public void setCreator(User creator)
setCreator
in interface Auditable
creator
- The creator to set.public java.util.Date getDateCreated()
getDateCreated
in interface Auditable
public void setDateCreated(java.util.Date dateCreated)
setDateCreated
in interface Auditable
dateCreated
- The dateCreated to set.public java.lang.Boolean isVoided()
isVoided
in interface Voidable
public java.lang.Boolean getVoided()
public void setVoided(java.lang.Boolean voided)
setVoided
in interface Voidable
voided
- the voided status to set.public User getVoidedBy()
getVoidedBy
in interface Voidable
public void setVoidedBy(User voidedBy)
setVoidedBy
in interface Voidable
voidedBy
- the user who voided this ConceptName.public java.util.Date getDateVoided()
getDateVoided
in interface Voidable
public void setDateVoided(java.util.Date dateVoided)
setDateVoided
in interface Voidable
dateVoided
- the date the ConceptName was voided.public java.lang.String getVoidReason()
getVoidReason
in interface Voidable
public void setVoidReason(java.lang.String voidReason)
setVoidReason
in interface Voidable
voidReason
- the reason this ConceptName was voidedpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Integer getConceptNameTagId()
public void setConceptNameTagId(java.lang.Integer conceptNameTagId)
conceptNameTagId
- the conceptNameTagId to setpublic static ConceptNameTag preferredLanguageTagFor(java.util.Locale locale)
locale
- locale from which the language component will be used
public static ConceptNameTag preferredCountryTagFor(java.util.Locale locale)
locale
- locale from which the country-code will be used
public static ConceptNameTag preferredCountryTagFor(java.lang.String country)
country
- ISO-3166 two letter country code
public static ConceptNameTag preferredLanguageTagFor(java.lang.String language)
language
- ISO-639 two letter language code
public static ConceptNameTag shortLanguageTagFor(java.util.Locale locale)
locale
-
public static ConceptNameTag shortCountryTagFor(java.util.Locale locale)
locale
-
public static ConceptNameTag shortCountryTagFor(java.lang.String country)
country
- ISO-3166 two letter country code
public static ConceptNameTag shortLanguageTagFor(java.lang.String language)
language
- ISO-639 two letter language code
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 User getChangedBy()
getChangedBy
in interface Auditable
Auditable.getChangedBy()
public java.util.Date getDateChanged()
getDateChanged
in interface Auditable
Auditable.getDateChanged()
public void setChangedBy(User changedBy)
setChangedBy
in interface Auditable
changedBy
- - the user who last changed the objectAuditable.setChangedBy(org.openmrs.User)
public void setDateChanged(java.util.Date dateChanged)
setDateChanged
in interface Auditable
dateChanged
- - the date the object was last changedAuditable.setDateChanged(java.util.Date)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |