|
|||||||||
| 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
public class MapObjectImpl
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 | |
|---|---|
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 copy| Method Detail |
|---|
public String getSourceIdentifier()
getSourceIdentifier in interface MapObjectpublic void setSourceIdentifier(String sid)
setSourceIdentifier in interface MapObjectsid - source asserted unique identifierpublic String getSid()
getSourceIdentifier().
getSid in interface MapObjectpublic void setSid(String sid)
setSourceIdentifier(String).
setSid in interface MapObjectsid - source asserted unique identifierpublic String getIdentifier()
getIdentifier in interface MapObjectpublic void setIdentifier(String id)
setIdentifier in interface MapObjectid - unique identifierpublic String getId()
getIdentifier().
getId in interface MapObjectpublic void setId(String id)
setIdentifier(String).
setId in interface MapObjectid - unique identifierpublic String getExpression()
getExpression in interface MapObjectpublic void setExpression(String expr)
setExpression in interface MapObjectexpr - expressionpublic String getExpr()
getExpression().
getExpr in interface MapObjectpublic void setExpr(String expr)
setExpression(String).
setExpr in interface MapObjectexpr - expressionpublic SourceIdentifierType getType()
SourceIdentifierType (FROMTYPE or TOTYPE).
getType in interface MapObjectpublic void setType(SourceIdentifierType type)
setType in interface MapObjecttype - SourceIdentifierTypepublic String getRule()
getRule in interface MapObjectpublic void setRule(String rule)
setRule in interface MapObjectrule - the rulepublic String getRestriction()
getRestriction in interface MapObjectpublic void setRestriction(String res)
setRestriction in interface MapObjectres - restrictionpublic String getRes()
getRestriction().
getRes in interface MapObjectpublic void setRes(String res)
setRestriction(String).
setRes in interface MapObjectres - restrictionpublic Source getSource()
MapObject.
getSource in interface SourceElementSourcepublic void setSource(Source source)
MapObject.
setSource in interface SourceElementsource - Sourcepublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface MapObjectString 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.
equals in class Objecto - an Object to compare against
true if Object o is equal;
false otherwise.public int hashCode()
hashCode in class Objectpublic 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 Comparableo - the Object to be compared.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||