|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.umls.meta.impl.MapObjectImpl
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 | |
MapObjectImpl()
Instantiates an empty MappingImpl . |
|
MapObjectImpl(MapObject mapping)
Instantiates a MapObject from the specified MapObject . |
Method Summary | |
int |
compareTo(Object o)
Compares this MapObject with the specified object for order. |
boolean |
equals(Object o)
Returns true if the specified object is equal to this object. |
String |
getExpr()
Returns the expression (FROMEXPR or TOEXPR). |
String |
getExpression()
Returns the expression (FROMEXPR or TOEXPR). |
String |
getId()
Returns the unique identifier (FROMID or TOID). |
String |
getIdentifier()
Returns the unique identifier (FROMID or TOID). |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
String |
getRes()
Returns the restriction (FROMRES or TORES). |
String |
getRestriction()
Returns the restriction (FROMRES or TORES). |
String |
getRule()
Returns the machine processable rule for when mapping is valid (FROMRULE or TORULE). |
String |
getSid()
Returns the source asserted unique identifier (FROMSID or TOSID). |
Source |
getSource()
Returns the source for this MapObject . |
String |
getSourceIdentifier()
Returns the source asserted unique identifier (FROMSID or TOSID). |
SourceIdentifierType |
getType()
Returns the type SourceIdentifierType (FROMTYPE or TOTYPE). |
int |
hashCode()
Returns a hash code based on key fields. |
void |
setExpr(String expr)
Sets the expression (FROMEXPR or TOEXPR). |
void |
setExpression(String expr)
Sets the expression (FROMEXPR or TOEXPR). |
void |
setId(String id)
Sets the unique identifier (FROMID or TOID). |
void |
setIdentifier(String id)
Sets the unique identifier (FROMID or TOID). |
void |
setRes(String res)
Sets the restriction (FROMRES or TORES). |
void |
setRestriction(String res)
Sets the restriction (FROMRES or TORES). |
void |
setRule(String rule)
Sets the machine processable rule for when mapping is valid (FROMRULE or TORULE). |
void |
setSid(String sid)
Sets the source asserted unique identifier (FROMSID or TOSID). |
void |
setSource(Source source)
Sets the source for this MapObject . |
void |
setSourceIdentifier(String sid)
Sets the source asserted unique identifier (FROMSID or TOSID). |
void |
setType(SourceIdentifierType type)
Sets the type (FROMTYPE or TOTYPE). |
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 MapObjectImpl()
MappingImpl
.
public MapObjectImpl(MapObject mapping)
MapObject
from the specified MapObject
.
mapping
- the MapObject
to copyMethod Detail |
public String getSourceIdentifier()
getSourceIdentifier
in interface MapObject
public void setSourceIdentifier(String sid)
setSourceIdentifier
in interface MapObject
sid
- source asserted unique identifierpublic String getSid()
getSourceIdentifier()
.
getSid
in interface MapObject
public void setSid(String sid)
setSourceIdentifier(String)
.
setSid
in interface MapObject
sid
- source asserted unique identifierpublic String getIdentifier()
getIdentifier
in interface MapObject
public void setIdentifier(String id)
setIdentifier
in interface MapObject
id
- unique identifierpublic String getId()
getIdentifier()
.
getId
in interface MapObject
public void setId(String id)
setIdentifier(String)
.
setId
in interface MapObject
id
- unique identifierpublic String getExpression()
getExpression
in interface MapObject
public void setExpression(String expr)
setExpression
in interface MapObject
expr
- expressionpublic String getExpr()
getExpression()
.
getExpr
in interface MapObject
public void setExpr(String expr)
setExpression(String)
.
setExpr
in interface MapObject
expr
- expressionpublic SourceIdentifierType getType()
SourceIdentifierType
(FROMTYPE or TOTYPE).
getType
in interface MapObject
public void setType(SourceIdentifierType type)
setType
in interface MapObject
type
- SourceIdentifierType
public String getRule()
getRule
in interface MapObject
public void setRule(String rule)
setRule
in interface MapObject
rule
- the rulepublic String getRestriction()
getRestriction
in interface MapObject
public void setRestriction(String res)
setRestriction
in interface MapObject
res
- restrictionpublic String getRes()
getRestriction()
.
getRes
in interface MapObject
public void setRes(String res)
setRestriction(String)
.
setRes
in interface MapObject
res
- restrictionpublic Source getSource()
MapObject
.
getSource
in interface SourceElement
Source
public void setSource(Source source)
MapObject
.
setSource
in interface SourceElement
source
- Source
public String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface MapObject
String
composed from the ui, expr, type,
rule, restriction and source fieldspublic boolean equals(Object o)
true
if the specified object is equal to this object.
The specified object must be a MapObject
with matching key fields.
o
- an Object
to compare against
true
if Object o is equal;
false
otherwise.public int hashCode()
public int compareTo(Object o)
MapObject
with the specified object for order.
Returns a negative integer, zero, or a positive integer as this object is
less than, equal to, or greater than the specified object. Results
are indeterminate if the specified parameter is not of the same class.
compareTo
in interface Comparable
o
- the Object to be compared.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |