|
||||||||||
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
Default implementation of Mapping
.
Nested Class Summary |
Nested classes inherited from class 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 copyMethod Detail |
public Concept getConcept()
Concept
that holds this Mapping
(CUI).
getConcept
in interface ConceptElement
Concept
that holds this Mapping
public void setConcept(Concept concept)
Concept
that holds this Mapping
(CUI).
setConcept
in interface ConceptElement
concept
- the Concept
that holds this Mapping
public RelationshipLabel getRel()
getRelationshipName()
.
getRel
in interface Mapping
getRelationshipName()
public void setRel(RelationshipLabel rel)
setRelationshipName(RelationshipLabel)
.
setRel
in interface Mapping
rel
- the RelationshipLabel
public RelationshipLabel getRelationshipName()
RelationshipLabel
(REL).
getRelationshipName
in interface Mapping
RelationshipLabel
public void setRelationshipName(RelationshipLabel rel)
RelationshipLabel
(REL).
setRelationshipName
in interface Mapping
rel
- the RelationshipLabel
public AdditionalRelationshipLabel getAdditionalRelationshipLabel()
AdditionalRelationshipLabel
(RELA).
getAdditionalRelationshipLabel
in interface Mapping
AdditionalRelationshipLabel
public AdditionalRelationshipLabel getRela()
getAdditionalRelationshipLabel()
.
getRela
in interface Mapping
getAdditionalRelationshipLabel()
public void setAdditionalRelationshipLabel(AdditionalRelationshipLabel rela)
AdditionalRelationshipLabel
(RELA).
setAdditionalRelationshipLabel
in interface Mapping
rela
- the AdditionalRelationshipLabel
public void setRela(AdditionalRelationshipLabel rela)
setAdditionalRelationshipLabel(AdditionalRelationshipLabel)
.
setRela
in interface Mapping
rela
- the AdditionalRelationshipLabel
public MapObject getFrom()
MapObject
.
getFrom
in interface Mapping
MapObject
public void setFrom(MapObject from)
MapObject
.
setFrom
in interface Mapping
from
- the mapped from MapObject
public MapObject getTo()
MapObject
.
getTo
in interface Mapping
MapObject
public void setTo(MapObject to)
MapObject
.
setTo
in interface Mapping
to
- the mapped to MapObject
public String getSubsetIdentifier()
getSubsetIdentifier
in interface Mapping
public String getSubsetId()
getSubsetIdentifier()
.
getSubsetId
in interface Mapping
getSubsetIdentifier()
public void setSubsetIdentifier(String subsetid)
setSubsetIdentifier
in interface Mapping
subsetid
- subset identifierpublic void setSubsetId(String subsetid)
setSubsetIdentifier(String)
.
setSubsetId
in interface Mapping
subsetid
- subset identifierpublic String getRank()
getRank
in interface Mapping
public void setRank(String rank)
setRank
in interface Mapping
rank
- prioritypublic String getSourceIdentifier()
getSourceIdentifier
in interface Mapping
public void setSourceIdentifier(String sid)
setSourceIdentifier
in interface Mapping
sid
- source asserted unique identifierpublic String getSid()
getSourceIdentifier()
.
getSid
in interface Mapping
public void setSid(String sid)
setSourceIdentifier(String)
.
setSid
in interface Mapping
sid
- source asserted unique identifierpublic String getIdentifier()
getIdentifier
in interface Mapping
public void setIdentifier(String id)
setIdentifier
in interface Mapping
id
- unique identifierpublic String getId()
getIdentifier()
.
getId
in interface Mapping
public void setId(String id)
setIdentifier(String)
.
setId
in interface Mapping
id
- unique identifierpublic String getRule()
getRule
in interface Mapping
public void setRule(String rule)
setRule
in interface Mapping
rule
- rule for when to apply mappingpublic String getRestriction()
getRestriction
in interface Mapping
public void setRestriction(String res)
setRestriction
in interface Mapping
res
- String
public String getRes()
getRestriction()
.
getRes
in interface Mapping
public void setRes(String res)
setRestriction(String)
.
setRes
in interface Mapping
res
- the human readable rule for use of mappingpublic AttributeName getAttributeName()
AttributeName
(MAPATN).
getAttributeName
in interface Mapping
AttributeName
public void setAttributeName(AttributeName atn)
AttributeName
(MAPATN).
setAttributeName
in interface Mapping
atn
- the AttributeName
public String getAttributeValue()
getAttributeValue
in interface Mapping
public void setAttributeValue(String atv)
setAttributeValue
in interface Mapping
atv
- the attribute valuepublic Source getSource()
Source
.
getSource
in interface SourceElement
public void setSource(Source source)
Source
.
setSource
in interface SourceElement
source
- the sourcepublic String getType()
getType
in interface Mapping
public void setType(String type)
setType
in interface Mapping
type
- the type of mappingpublic ContentView getContentView()
ContentView
definition for this Mapping
(CVF).
getContentView
in interface ContentViewElement
ContentView
definitionpublic void setContentView(ContentView cvf)
ContentView
definition for this Mapping
(CVF).
setContentView
in interface ContentViewElement
cvf
- the ContentView
definitionpublic ContentView getCvf()
getContentView()
.
getCvf
in interface ContentViewElement
getContentView()
public void setCvf(ContentView cvf)
setContentView(ContentView)
.
setCvf
in interface ContentViewElement
cvf
- the ContentView
definitionpublic String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface Mapping
String
composed from the mapsetcui, mapsetsab,
mapsubsetid, maprank, from fields, rel, rela, to fields,
maprule, maptype, mapatn, mapatv, cvf fieldspublic int hashCode()
public 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.
o
- 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 Comparable
o
- 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 |