public class ConceptReferenceTerm extends BaseOpenmrsMetadata implements java.io.Serializable
Constructor and Description |
---|
ConceptReferenceTerm()
default constructor
|
ConceptReferenceTerm(ConceptSource source,
java.lang.String code,
java.lang.String name)
Convenience constructor with the required fields filled in
|
ConceptReferenceTerm(java.lang.Integer conceptReferenceTermId)
constructor with conceptReferenceTermId
|
Modifier and Type | Method and Description |
---|---|
void |
addConceptReferenceTermMap(ConceptReferenceTermMap conceptReferenceTermMap)
Add the given
ConceptReferenceTermMap object to this concept reference term's list of
concept reference term maps. |
java.lang.String |
getCode() |
java.lang.Integer |
getConceptReferenceTermId() |
java.util.Set<ConceptReferenceTermMap> |
getConceptReferenceTermMaps() |
ConceptSource |
getConceptSource() |
java.lang.Integer |
getId() |
java.lang.String |
getVersion() |
boolean |
removeConceptReferenceTermMap(ConceptReferenceTermMap conceptReferenceTermMap)
Remove the given ConceptReferenceTermMap from the list of conceptReferenceTermMaps for this
ConceptReferenceTerm |
void |
setCode(java.lang.String code) |
void |
setConceptReferenceTermId(java.lang.Integer conceptReferenceTermId) |
void |
setConceptReferenceTermMaps(java.util.Set<ConceptReferenceTermMap> conceptReferenceTermMaps) |
void |
setConceptSource(ConceptSource conceptSource) |
void |
setId(java.lang.Integer id) |
void |
setVersion(java.lang.String version) |
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 ] . |
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason
equals, getUuid, hashCode, setUuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public ConceptReferenceTerm()
public ConceptReferenceTerm(java.lang.Integer conceptReferenceTermId)
public ConceptReferenceTerm(ConceptSource source, java.lang.String code, java.lang.String name)
source
- the ConceptSource belongs incode
- the code within that conceptname
- the user readable name of this termpublic java.lang.Integer getConceptReferenceTermId()
public void setConceptReferenceTermId(java.lang.Integer conceptReferenceTermId)
conceptReferenceTermId
- the conceptReferenceTermId to setpublic ConceptSource getConceptSource()
public void setConceptSource(ConceptSource conceptSource)
conceptSource
- the conceptSource to setpublic java.lang.String getCode()
public void setCode(java.lang.String code)
code
- the code to setpublic java.lang.String getVersion()
public void setVersion(java.lang.String version)
version
- the version to setpublic java.util.Set<ConceptReferenceTermMap> getConceptReferenceTermMaps()
public void setConceptReferenceTermMaps(java.util.Set<ConceptReferenceTermMap> conceptReferenceTermMaps)
conceptReferenceTermMaps
- the conceptReferenceTermMaps to setpublic 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 void addConceptReferenceTermMap(ConceptReferenceTermMap conceptReferenceTermMap)
ConceptReferenceTermMap
object to this concept reference term's list of
concept reference term maps. If there is already a corresponding ConceptReferenceTermMap
object for this concept reference term already, this one will not be added.conceptReferenceTermMap
- public boolean removeConceptReferenceTermMap(ConceptReferenceTermMap conceptReferenceTermMap)
ConceptReferenceTerm
conceptReferenceMap
- public 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()
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.