|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.impl.MappingImpl
public class MappingImpl
Default implementation of Mapping.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface gov.nih.nlm.umls.meta.SourceElement |
|---|
SourceElement.BySourceComparator, SourceElement.BySourceRestrictor |
| Field Summary | |
|---|---|
protected String |
key_fields
|
protected boolean |
key_fields_flag
|
| Constructor Summary | |
|---|---|
MappingImpl()
Instantiates an empty MappingImpl. |
|
MappingImpl(Mapping mapping)
Instantiates a Mapping from the specified Mapping. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compares this Mapping to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
AdditionalRelationshipLabel |
getAdditionalRelationshipLabel()
Returns the AdditionalRelationshipLabel (RELA). |
AttributeName |
getAttributeName()
Returns the AttributeName (MAPATN). |
String |
getAttributeValue()
Returns the attribute value (MAPATV). |
Concept |
getConcept()
Returns the Concept that holds this Mapping (CUI). |
ContentView |
getContentView()
Returns tbe ContentView definition for this Mapping (CVF). |
ContentView |
getCvf()
Shorthand for getContentView(). |
MapObject |
getFrom()
Returns the mapped from MapObject. |
String |
getId()
Returns the unique identifier (MAPID). |
String |
getIdentifier()
Returns the unique identifier (MAPID). |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
String |
getRank()
Returns the rank (RANK). |
RelationshipLabel |
getRel()
Shorthand for getRelationshipName(). |
AdditionalRelationshipLabel |
getRela()
Shorthand for getAdditionalRelationshipLabel(). |
RelationshipLabel |
getRelationshipName()
Returns the RelationshipLabel (REL). |
String |
getRes()
Returns the human readable rule for use of mapping (MAPRES). |
String |
getRestriction()
Returns the human readable rule for use of mapping (MAPRES). |
String |
getRule()
Returns the machine processable rule for when to apply mapping (MAPRULE). |
String |
getSid()
Returns the source asserted unique identifier (MAPSID). |
Source |
getSource()
Returns the Source. |
String |
getSourceIdentifier()
Returns the source asserted unique identifier (MAPSID). |
String |
getSubsetId()
Shorthand for getSubsetIdentifier(). |
String |
getSubsetIdentifier()
Returns the subset identifier (MAPSUBSETID). |
MapObject |
getTo()
Returns the mapped to MapObject. |
String |
getType()
Returns the type of mapping (MAPTYPE). |
int |
hashCode()
Return a hash code based on key fields. |
void |
setAdditionalRelationshipLabel(AdditionalRelationshipLabel rela)
Sets the AdditionalRelationshipLabel (RELA). |
void |
setAttributeName(AttributeName atn)
Sets the AttributeName (MAPATN). |
void |
setAttributeValue(String atv)
Sets the attribute value (MAPATV). |
void |
setConcept(Concept concept)
Sets the Concept that holds this Mapping (CUI). |
void |
setContentView(ContentView cvf)
Sets tbe ContentView definition for this Mapping (CVF). |
void |
setCvf(ContentView cvf)
Shorthand for setContentView(ContentView). |
void |
setFrom(MapObject from)
Sets the mapped from MapObject. |
void |
setId(String id)
Sets the unique identifier (MAPID). |
void |
setIdentifier(String id)
Sets the unique identifier (MAPID). |
void |
setRank(String rank)
Sets the rank (RANK). |
void |
setRel(RelationshipLabel rel)
Shorthand for setRelationshipName(RelationshipLabel). |
void |
setRela(AdditionalRelationshipLabel rela)
Shorthand for setAdditionalRelationshipLabel(AdditionalRelationshipLabel). |
void |
setRelationshipName(RelationshipLabel rel)
Sets the RelationshipLabel (REL). |
void |
setRes(String res)
Sets the human readable rule for use of mapping (MAPRES). |
void |
setRestriction(String res)
Sets the human readable rule for use of mapping (MAPRES). |
void |
setRule(String rule)
Sets the machine processable rule for when to apply mapping (MAPRULE). |
void |
setSid(String sid)
Sets the source asserted unique identifier (MAPSID). |
void |
setSource(Source source)
Sets the Source. |
void |
setSourceIdentifier(String sid)
Sets the source asserted unique identifier (MAPSID). |
void |
setSubsetId(String subsetid)
Shorthand for setSubsetIdentifier(String). |
void |
setSubsetIdentifier(String subsetid)
Sets the subset identifier (MAPSUBSETID). |
void |
setTo(MapObject to)
Sets the mapped to MapObject. |
void |
setType(String type)
Sets the type of mapping (MAPTYPE). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean key_fields_flag
protected String key_fields
| Constructor Detail |
|---|
public MappingImpl()
MappingImpl.
public MappingImpl(Mapping mapping)
Mapping from the specified Mapping.
mapping - the Mapping to copy| Method Detail |
|---|
public Concept getConcept()
Concept that holds this Mapping (CUI).
getConcept in interface ConceptElementConcept that holds this Mappingpublic void setConcept(Concept concept)
Concept that holds this Mapping (CUI).
setConcept in interface ConceptElementconcept - the Concept that holds this Mappingpublic RelationshipLabel getRel()
getRelationshipName().
getRel in interface MappinggetRelationshipName()public void setRel(RelationshipLabel rel)
setRelationshipName(RelationshipLabel).
setRel in interface Mappingrel - the RelationshipLabelpublic RelationshipLabel getRelationshipName()
RelationshipLabel (REL).
getRelationshipName in interface MappingRelationshipLabelpublic void setRelationshipName(RelationshipLabel rel)
RelationshipLabel (REL).
setRelationshipName in interface Mappingrel - the RelationshipLabelpublic AdditionalRelationshipLabel getAdditionalRelationshipLabel()
AdditionalRelationshipLabel (RELA).
getAdditionalRelationshipLabel in interface MappingAdditionalRelationshipLabelpublic AdditionalRelationshipLabel getRela()
getAdditionalRelationshipLabel().
getRela in interface MappinggetAdditionalRelationshipLabel()public void setAdditionalRelationshipLabel(AdditionalRelationshipLabel rela)
AdditionalRelationshipLabel (RELA).
setAdditionalRelationshipLabel in interface Mappingrela - the AdditionalRelationshipLabelpublic void setRela(AdditionalRelationshipLabel rela)
setAdditionalRelationshipLabel(AdditionalRelationshipLabel).
setRela in interface Mappingrela - the AdditionalRelationshipLabelpublic MapObject getFrom()
MapObject.
getFrom in interface MappingMapObjectpublic void setFrom(MapObject from)
MapObject.
setFrom in interface Mappingfrom - the mapped from MapObjectpublic MapObject getTo()
MapObject.
getTo in interface MappingMapObjectpublic void setTo(MapObject to)
MapObject.
setTo in interface Mappingto - the mapped to MapObjectpublic String getSubsetIdentifier()
getSubsetIdentifier in interface Mappingpublic String getSubsetId()
getSubsetIdentifier().
getSubsetId in interface MappinggetSubsetIdentifier()public void setSubsetIdentifier(String subsetid)
setSubsetIdentifier in interface Mappingsubsetid - subset identifierpublic void setSubsetId(String subsetid)
setSubsetIdentifier(String).
setSubsetId in interface Mappingsubsetid - subset identifierpublic String getRank()
getRank in interface Mappingpublic void setRank(String rank)
setRank in interface Mappingrank - prioritypublic String getSourceIdentifier()
getSourceIdentifier in interface Mappingpublic void setSourceIdentifier(String sid)
setSourceIdentifier in interface Mappingsid - source asserted unique identifierpublic String getSid()
getSourceIdentifier().
getSid in interface Mappingpublic void setSid(String sid)
setSourceIdentifier(String).
setSid in interface Mappingsid - source asserted unique identifierpublic String getIdentifier()
getIdentifier in interface Mappingpublic void setIdentifier(String id)
setIdentifier in interface Mappingid - unique identifierpublic String getId()
getIdentifier().
getId in interface Mappingpublic void setId(String id)
setIdentifier(String).
setId in interface Mappingid - unique identifierpublic String getRule()
getRule in interface Mappingpublic void setRule(String rule)
setRule in interface Mappingrule - rule for when to apply mappingpublic String getRestriction()
getRestriction in interface Mappingpublic void setRestriction(String res)
setRestriction in interface Mappingres - Stringpublic String getRes()
getRestriction().
getRes in interface Mappingpublic void setRes(String res)
setRestriction(String).
setRes in interface Mappingres - the human readable rule for use of mappingpublic AttributeName getAttributeName()
AttributeName (MAPATN).
getAttributeName in interface MappingAttributeNamepublic void setAttributeName(AttributeName atn)
AttributeName (MAPATN).
setAttributeName in interface Mappingatn - the AttributeNamepublic String getAttributeValue()
getAttributeValue in interface Mappingpublic void setAttributeValue(String atv)
setAttributeValue in interface Mappingatv - the attribute valuepublic Source getSource()
Source.
getSource in interface SourceElementpublic void setSource(Source source)
Source.
setSource in interface SourceElementsource - the sourcepublic String getType()
getType in interface Mappingpublic void setType(String type)
setType in interface Mappingtype - the type of mappingpublic ContentView getContentView()
ContentView definition for this Mapping (CVF).
getContentView in interface ContentViewElementContentView definitionpublic void setContentView(ContentView cvf)
ContentView definition for this Mapping (CVF).
setContentView in interface ContentViewElementcvf - the ContentView definitionpublic ContentView getCvf()
getContentView().
getCvf in interface ContentViewElementgetContentView()public void setCvf(ContentView cvf)
setContentView(ContentView).
setCvf in interface ContentViewElementcvf - the ContentView definitionpublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface MappingString composed from the mapsetcui, mapsetsab,
mapsubsetid, maprank, from fields, rel, rela, to fields,
maprule, maptype, mapatn, mapatv, cvf fieldspublic 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
Mapping 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)
Mapping 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 object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||