public class ConceptReferenceTermMap extends BaseConceptMap
| Constructor and Description |
|---|
ConceptReferenceTermMap()
default constructor
|
ConceptReferenceTermMap(ConceptReferenceTerm termB,
ConceptMapType conceptMapType)
Convenience constructor that takes the term to be mapped to and the type of the map
|
ConceptReferenceTermMap(Integer conceptReferenceTermMapId)
constructor with concept reference term map id
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Returns
true if and only if x and y refer to the same
object (x == y has the value true) or both have the same
uuid (((x.uuid ! |
Integer |
getConceptReferenceTermMapId() |
Integer |
getId() |
ConceptReferenceTerm |
getTermA() |
ConceptReferenceTerm |
getTermB() |
int |
hashCode()
Returns a hash code based on the
uuid field. |
void |
setConceptReferenceTermMapId(Integer conceptReferenceTermMapId) |
void |
setId(Integer id) |
void |
setTermA(ConceptReferenceTerm termA) |
void |
setTermB(ConceptReferenceTerm termB) |
String |
toString()
Returns a string equal to the value of: ClassName{hashCode=...,
uuid=...}
|
getChangedBy, getConceptMapType, getCreator, getDateChanged, getDateCreated, setChangedBy, setConceptMapType, setCreator, setDateChanged, setDateCreatedgetUuid, setUuidclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetUuid, setUuidpublic ConceptReferenceTermMap()
public ConceptReferenceTermMap(Integer conceptReferenceTermMapId)
public ConceptReferenceTermMap(ConceptReferenceTerm termB, ConceptMapType conceptMapType)
termB - the other concept reference term to map toconceptMapType - the concept map type for this concept reference term mappublic Integer getConceptReferenceTermMapId()
public void setConceptReferenceTermMapId(Integer conceptReferenceTermMapId)
conceptReferenceTermMapId - the conceptReferenceTermMapId to setpublic ConceptReferenceTerm getTermA()
public void setTermA(ConceptReferenceTerm termA)
termA - the termA to setpublic ConceptReferenceTerm getTermB()
public void setTermB(ConceptReferenceTerm termB)
termB - the termB to setpublic Integer getId()
OpenmrsObject.getId()public void setId(Integer id)
id - - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)public boolean equals(Object obj)
BaseOpenmrsObjecttrue if and only if x and y refer to the same
object (x == y has the value true) or both have the same
uuid (((x.uuid != null) && x.uuid.equals(y.uuid)) has the value
true).equals in class BaseOpenmrsObjectObject.equals(java.lang.Object)public int hashCode()
BaseOpenmrsObjectuuid field.
If the uuid field is null, it delegates to
Object.hashCode().
hashCode in class BaseOpenmrsObjectObject.hashCode()public String toString()
BaseOpenmrsObjectClassName{hashCode=..., uuid=...}
If the uuid field is null, it returns:
ClassName{hashCode=...}Should include hashCode if uuid is null Should include uuid if not null
toString in class BaseOpenmrsObjectObject.toString()Copyright © 2024 OpenMRS Inc.. All rights reserved.