public class ConceptNameTag extends BaseOpenmrsObject implements Auditable, Voidable, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT
Deprecated.
since OpenMRS 1.7 we use ConceptNameType to mark these types of concept names.
|
static String |
PREFERRED
Deprecated.
since OpenMRS 1.7 we use ConceptNameType to mark these types of concept names.
|
static long |
serialVersionUID |
static String |
SHORT
Deprecated.
since OpenMRS 1.7 we use ConceptNameType to mark these types of concept names.
|
static String |
SYNONYM
Deprecated.
since OpenMRS 1.7 we use ConceptNameType to mark these types of concept names.
|
Constructor and Description |
---|
ConceptNameTag()
Default constructor.
|
ConceptNameTag(String tag,
String description)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
User |
getChangedBy()
Not currently used.
|
Integer |
getConceptNameTagId() |
User |
getCreator() |
Date |
getDateChanged()
Not currently used.
|
Date |
getDateCreated() |
Date |
getDateVoided()
Returns the Date this ConceptName was voided.
|
String |
getDescription()
Returns the description of this tag.
|
Integer |
getId() |
String |
getTag()
Returns the textual representation of this ConceptNameTag.
|
Boolean |
getVoided()
Returns whether the ConceptName has been voided.
|
User |
getVoidedBy()
Returns the User who voided this ConceptName.
|
String |
getVoidReason()
Returns the reason this ConceptName was voided.
|
int |
hashCode() |
Boolean |
isVoided()
Returns whether the ConceptName has been voided.
|
static ConceptNameTag |
preferredCountryTagFor(Locale locale)
A factory method which generates a preferred country tag from the country-code portion of a
locale.
|
static ConceptNameTag |
preferredCountryTagFor(String country)
A factory method that generates strings for preferred country tags.
|
static ConceptNameTag |
preferredLanguageTagFor(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(String language)
A factory method that generates strings for preferred language tags.
|
void |
setChangedBy(User changedBy)
Not currently used.
|
void |
setConceptNameTagId(Integer conceptNameTagId) |
void |
setCreator(User creator) |
void |
setDateChanged(Date dateChanged)
Not currently used.
|
void |
setDateCreated(Date dateCreated) |
void |
setDateVoided(Date dateVoided)
Sets the Data this ConceptName was voided.
|
void |
setDescription(String description)
Sets the description of this tag.
|
void |
setId(Integer id) |
void |
setTag(String tag)
Sets the textual representation of this ConceptNametag.
|
void |
setVoided(Boolean voided)
Sets the voided status of the ConceptName.
|
void |
setVoidedBy(User voidedBy)
Sets the User who voided this ConceptName.
|
void |
setVoidReason(String voidReason)
Sets the reason this ConceptName was voided.
|
static ConceptNameTag |
shortCountryTagFor(Locale locale)
Method that generates a concept name tag based on a specified locale's country code.
|
static ConceptNameTag |
shortCountryTagFor(String country)
A factory method that generates strings for short country tags.
|
static ConceptNameTag |
shortLanguageTagFor(Locale locale)
Method that generates a concept name tag based on a specific locale's language.
|
static ConceptNameTag |
shortLanguageTagFor(String language)
A factory method that generates strings for short language tags.
|
String |
toString() |
getUuid, setUuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
@Deprecated public static final String DEFAULT
@Deprecated public static final String SHORT
@Deprecated public static final String SYNONYM
@Deprecated public static final String PREFERRED
public String getTag()
public void setTag(String tag)
tag
- the textual representationpublic String getDescription()
public void setDescription(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 Date getDateCreated()
getDateCreated
in interface Auditable
public void setDateCreated(Date dateCreated)
setDateCreated
in interface Auditable
dateCreated
- The dateCreated to set.public Boolean isVoided()
public Boolean getVoided()
public void setVoided(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 Date getDateVoided()
getDateVoided
in interface Voidable
public void setDateVoided(Date dateVoided)
setDateVoided
in interface Voidable
dateVoided
- the date the ConceptName was voided.public String getVoidReason()
getVoidReason
in interface Voidable
public void setVoidReason(String voidReason)
setVoidReason
in interface Voidable
voidReason
- the reason this ConceptName was voidedpublic Integer getConceptNameTagId()
public void setConceptNameTagId(Integer conceptNameTagId)
conceptNameTagId
- the conceptNameTagId to setpublic static ConceptNameTag preferredLanguageTagFor(Locale locale)
locale
- locale from which the language component will be usedpublic static ConceptNameTag preferredCountryTagFor(Locale locale)
locale
- locale from which the country-code will be usedpublic static ConceptNameTag preferredCountryTagFor(String country)
country
- ISO-3166 two letter country codepublic static ConceptNameTag preferredLanguageTagFor(String language)
language
- ISO-639 two letter language codepublic static ConceptNameTag shortLanguageTagFor(Locale locale)
locale
- public static ConceptNameTag shortCountryTagFor(Locale locale)
locale
- public static ConceptNameTag shortCountryTagFor(String country)
country
- ISO-3166 two letter country codepublic static ConceptNameTag shortLanguageTagFor(String language)
language
- ISO-639 two letter language codepublic 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)
public User getChangedBy()
getChangedBy
in interface Auditable
Auditable.getChangedBy()
public 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(Date dateChanged)
setDateChanged
in interface Auditable
dateChanged
- - the date the object was last changedAuditable.setDateChanged(java.util.Date)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.