public class ConceptNameTag extends BaseOpenmrsObject implements Auditable, Voidable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT
Deprecated.
since OpenMRS 1.7 we use ConceptNameType to mark these types of concept names.
|
static java.lang.String |
PREFERRED
Deprecated.
since OpenMRS 1.7 we use ConceptNameType to mark these types of concept names.
|
static long |
serialVersionUID |
static java.lang.String |
SHORT
Deprecated.
since OpenMRS 1.7 we use ConceptNameType to mark these types of concept names.
|
static java.lang.String |
SYNONYM
Deprecated.
since OpenMRS 1.7 we use ConceptNameType to mark these types of concept names.
|
Constructor and Description |
---|
ConceptNameTag()
Default constructor.
|
ConceptNameTag(java.lang.String tag,
java.lang.String description)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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()
Returns a string consisting of the name of the class of which the object is an instance and
the
uuid field surrounded by [ and ] . |
equals, getUuid, hashCode, setUuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
@Deprecated public static final java.lang.String DEFAULT
@Deprecated public static final java.lang.String SHORT
@Deprecated public static final java.lang.String SYNONYM
@Deprecated public static final java.lang.String PREFERRED
public ConceptNameTag()
public ConceptNameTag(java.lang.String tag, java.lang.String description)
tag
- description
- 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()
public java.lang.Boolean getVoided()
public void setVoided(java.lang.Boolean voided)
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()
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 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 usedpublic static ConceptNameTag preferredCountryTagFor(java.util.Locale locale)
locale
- locale from which the country-code will be usedpublic static ConceptNameTag preferredCountryTagFor(java.lang.String country)
country
- ISO-3166 two letter country codepublic static ConceptNameTag preferredLanguageTagFor(java.lang.String language)
language
- ISO-639 two letter language codepublic 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 codepublic static ConceptNameTag shortLanguageTagFor(java.lang.String language)
language
- ISO-639 two letter language codepublic 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)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.