|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.umls.meta.impl.ConceptMappingImpl
Default implementation of the ConceptMapping
interface.
Constructor Summary | |
ConceptMappingImpl()
Instantiates an empty ConceptMapping . |
|
ConceptMappingImpl(ConceptMapping cm)
Instantiates a ConceptMapping from the specified ConceptMapping . |
Method Summary | |
int |
compareTo(Object o)
Compares this ConceptMapping to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
AdditionalRelationshipLabel |
getAdditionalRelationshipLabel()
Returns the AdditionalRelationshipLabel (RELA). |
String |
getConceptIdentifier()
Returns the concept identifier for the first concept (CUI1). |
String |
getCui1()
Shorthand for getConceptIdentifier() . |
String |
getCui2()
Shorthand for getRelativeConceptIdentifier() . |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
String |
getLastReleaseVersion()
Returns the last release version in which the CUI1 was valid (VER). |
String |
getMapin()
Returns the "in current subset" value (MAPIN). |
String |
getMapReason()
Returns the reason for this ConceptMapping (MAPREASON). |
String |
getReason()
Return the reason for this ConceptMapping . |
RelationshipLabel |
getRel()
Shorthand for getRelationship() . |
AdditionalRelationshipLabel |
getRela()
Shorthand for getAdditionalRelationshipLabel() ). |
RelationshipLabel |
getRelationship()
Returns the relationship between the two concepts (REL). |
String |
getRelativeConceptIdentifier()
Returns the concept identifier for the second concept (CUI2). |
String |
getVer()
Shorthand for getLastReleaseVersion() . |
int |
hashCode()
Returns a hash code based on all fields. |
boolean |
inCurrentSubset()
Indicates whether or not this ConceptMapping is in the current subset (MAPIN). |
void |
setAdditionalRelationshipLabel(AdditionalRelationshipLabel rela)
Sets the AdditionalRelationshipLabel (RELA). |
void |
setConceptIdentifier(String cui1)
Sets the concept identifier for the first concept (CUI1). |
void |
setCui1(String cui1)
Shorthand for setConceptIdentifier(String) . |
void |
setCui2(String cui2)
Shorthand for setRelativeConceptIdentifier(String) . |
void |
setInCurrentSubset(boolean mapin)
Sets the flag indicating whether or not this ConceptMapping
is in the current subset (MAPIN). |
void |
setLastReleaseVersion(String ver)
Sets the last release version in which the CUI1 was valid (VER). |
void |
setMapin(String mapin)
Sets the "in current subset" value (MAPIN). |
void |
setMapReason(String reason)
Sets the reason for this ConceptMapping (MAPREASON). |
void |
setReason(String reason)
Set the reason for this ConceptMapping . |
void |
setRel(RelationshipLabel rel)
Shorthand for setRelationship(RelationshipLabel) . |
void |
setRela(AdditionalRelationshipLabel rela)
Shorthand for setAdditionalRelationshipLabel(AdditionalRelationshipLabel) . |
void |
setRelationship(RelationshipLabel rel)
Sets the relationship between the two concepts (REL). |
void |
setRelativeConceptIdentifier(String cui2)
Sets the concept identifier for the second concept (CUI2). |
void |
setVer(String ver)
Shorthand for setLastReleaseVersion(String) |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConceptMappingImpl()
ConceptMapping
.
public ConceptMappingImpl(ConceptMapping cm)
ConceptMapping
from the specified ConceptMapping
.
cm
- ConceptMapping
to be copiedMethod Detail |
public String getConceptIdentifier()
getConceptIdentifier
in interface ConceptMapping
public String getCui1()
getConceptIdentifier()
.
getCui1
in interface ConceptMapping
getConceptIdentifier()
public void setConceptIdentifier(String cui1)
setConceptIdentifier
in interface ConceptMapping
cui1
- the concept identifier for the first conceptpublic void setCui1(String cui1)
setConceptIdentifier(String)
.
setCui1
in interface ConceptMapping
cui1
- the concept identifier for the first conceptpublic String getLastReleaseVersion()
getLastReleaseVersion
in interface ConceptMapping
public String getVer()
getLastReleaseVersion()
.
getVer
in interface ConceptMapping
getLastReleaseVersion()
public void setLastReleaseVersion(String ver)
setLastReleaseVersion
in interface ConceptMapping
ver
- the last release version in which the CUI1 was validpublic void setVer(String ver)
setLastReleaseVersion(String)
setVer
in interface ConceptMapping
ver
- the last release version in which the CUI1 was validpublic RelationshipLabel getRelationship()
getRelationship
in interface ConceptMapping
public RelationshipLabel getRel()
getRelationship()
.
getRel
in interface ConceptMapping
getRelationship()
public void setRelationship(RelationshipLabel rel)
setRelationship
in interface ConceptMapping
rel
- the relationship between the two conceptspublic void setRel(RelationshipLabel rel)
setRelationship(RelationshipLabel)
.
setRel
in interface ConceptMapping
rel
- the relationship between the two conceptspublic AdditionalRelationshipLabel getAdditionalRelationshipLabel()
AdditionalRelationshipLabel
(RELA).
getAdditionalRelationshipLabel
in interface ConceptMapping
AdditionalRelationshipLabel
public AdditionalRelationshipLabel getRela()
getAdditionalRelationshipLabel()
).
getRela
in interface ConceptMapping
getAdditionalRelationshipLabel()
public void setAdditionalRelationshipLabel(AdditionalRelationshipLabel rela)
AdditionalRelationshipLabel
(RELA).
setAdditionalRelationshipLabel
in interface ConceptMapping
rela
- the AdditionalRelationshipLabel
public void setRela(AdditionalRelationshipLabel rela)
setAdditionalRelationshipLabel(AdditionalRelationshipLabel)
.
setRela
in interface ConceptMapping
rela
- the AdditionalRelationshipLabel
public String getRelativeConceptIdentifier()
getRelativeConceptIdentifier
in interface ConceptMapping
public String getCui2()
getRelativeConceptIdentifier()
.
getCui2
in interface ConceptMapping
getRelativeConceptIdentifier()
public void setRelativeConceptIdentifier(String cui2)
setRelativeConceptIdentifier
in interface ConceptMapping
cui2
- the concept identifier for the second conceptpublic void setCui2(String cui2)
setRelativeConceptIdentifier(String)
.
setCui2
in interface ConceptMapping
cui2
- the concept identifier for the second conceptpublic String getMapReason()
ConceptMapping
(MAPREASON).
getMapReason
in interface ConceptMapping
ConceptMapping
public void setMapReason(String reason)
ConceptMapping
(MAPREASON).
setMapReason
in interface ConceptMapping
reason
- the reason for this ConceptMapping
public String getMapin()
getMapin
in interface ConceptMapping
public boolean inCurrentSubset()
ConceptMapping
is in the current subset (MAPIN).
inCurrentSubset
in interface ConceptMapping
boolean
true if in current subset,
boolean
false if not in current subsetpublic void setMapin(String mapin)
setMapin
in interface ConceptMapping
mapin
- the "in current subset" valuepublic void setInCurrentSubset(boolean mapin)
ConceptMapping
is in the current subset (MAPIN).
setInCurrentSubset
in interface ConceptMapping
mapin
- boolean
true if in current subset,
boolean
false if not in current subsetpublic String getReason()
ConceptMapping
.
getReason
in interface ConceptMapping
public void setReason(String reason)
ConceptMapping
.
setReason
in interface ConceptMapping
reason
- the reason for the mappingpublic int hashCode()
public boolean equals(Object o)
true
if the specified object is
equal to this object. The specified object must be a
ConceptMapping
with matching key fields.
o
- an Object
to compare against
true
if Object o is equal,
false
otherwisepublic int compareTo(Object o)
ConceptMapping
to another one. Results
are indeterminate if the specified parameter is not of the
same class.
compareTo
in interface Comparable
o
- the Object
to compare to
int
representing the relative ordering
of this and the compare-to objectpublic String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface ConceptMapping
String
composed from the cui1, ver, rel,
rela, mapreason, cui2, and mapin.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |