|
|||||||||
| 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
public class 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 copied| Method Detail |
|---|
public String getConceptIdentifier()
getConceptIdentifier in interface ConceptMappingpublic String getCui1()
getConceptIdentifier().
getCui1 in interface ConceptMappinggetConceptIdentifier()public void setConceptIdentifier(String cui1)
setConceptIdentifier in interface ConceptMappingcui1 - the concept identifier for the first conceptpublic void setCui1(String cui1)
setConceptIdentifier(String).
setCui1 in interface ConceptMappingcui1 - the concept identifier for the first conceptpublic String getLastReleaseVersion()
getLastReleaseVersion in interface ConceptMappingpublic String getVer()
getLastReleaseVersion().
getVer in interface ConceptMappinggetLastReleaseVersion()public void setLastReleaseVersion(String ver)
setLastReleaseVersion in interface ConceptMappingver - the last release version in which the CUI1 was validpublic void setVer(String ver)
setLastReleaseVersion(String)
setVer in interface ConceptMappingver - the last release version in which the CUI1 was validpublic RelationshipLabel getRelationship()
getRelationship in interface ConceptMappingpublic RelationshipLabel getRel()
getRelationship().
getRel in interface ConceptMappinggetRelationship()public void setRelationship(RelationshipLabel rel)
setRelationship in interface ConceptMappingrel - the relationship between the two conceptspublic void setRel(RelationshipLabel rel)
setRelationship(RelationshipLabel).
setRel in interface ConceptMappingrel - the relationship between the two conceptspublic AdditionalRelationshipLabel getAdditionalRelationshipLabel()
AdditionalRelationshipLabel (RELA).
getAdditionalRelationshipLabel in interface ConceptMappingAdditionalRelationshipLabelpublic AdditionalRelationshipLabel getRela()
getAdditionalRelationshipLabel()).
getRela in interface ConceptMappinggetAdditionalRelationshipLabel()public void setAdditionalRelationshipLabel(AdditionalRelationshipLabel rela)
AdditionalRelationshipLabel (RELA).
setAdditionalRelationshipLabel in interface ConceptMappingrela - the AdditionalRelationshipLabelpublic void setRela(AdditionalRelationshipLabel rela)
setAdditionalRelationshipLabel(AdditionalRelationshipLabel).
setRela in interface ConceptMappingrela - the AdditionalRelationshipLabelpublic String getRelativeConceptIdentifier()
getRelativeConceptIdentifier in interface ConceptMappingpublic String getCui2()
getRelativeConceptIdentifier().
getCui2 in interface ConceptMappinggetRelativeConceptIdentifier()public void setRelativeConceptIdentifier(String cui2)
setRelativeConceptIdentifier in interface ConceptMappingcui2 - the concept identifier for the second conceptpublic void setCui2(String cui2)
setRelativeConceptIdentifier(String).
setCui2 in interface ConceptMappingcui2 - the concept identifier for the second conceptpublic String getMapReason()
ConceptMapping (MAPREASON).
getMapReason in interface ConceptMappingConceptMappingpublic void setMapReason(String reason)
ConceptMapping (MAPREASON).
setMapReason in interface ConceptMappingreason - the reason for this ConceptMappingpublic String getMapin()
getMapin in interface ConceptMappingpublic boolean inCurrentSubset()
ConceptMapping is in the current subset (MAPIN).
inCurrentSubset in interface ConceptMappingboolean true if in current subset,
boolean false if not in current subsetpublic void setMapin(String mapin)
setMapin in interface ConceptMappingmapin - the "in current subset" valuepublic void setInCurrentSubset(boolean mapin)
ConceptMapping
is in the current subset (MAPIN).
setInCurrentSubset in interface ConceptMappingmapin - boolean true if in current subset,
boolean false if not in current subsetpublic String getReason()
ConceptMapping.
getReason in interface ConceptMappingpublic void setReason(String reason)
ConceptMapping.
setReason in interface ConceptMappingreason - the reason for the mappingpublic int hashCode()
hashCode in class Objectpublic 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.
equals in class Objecto - 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 Comparableo - 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 ConceptMappingString 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 | ||||||||