gov.nih.nlm.umls.meta
Interface MapObject

All Superinterfaces:
Comparable, SourceElement
All Known Implementing Classes:
MapObjectImpl

public interface MapObject
extends SourceElement, Comparable

Represents information about the "to" or "from" end of a mapping. For example, a SNOMEDCT->ICD9CM mapping might have a MapObject representing a SNOMEDCT concept identifier and a MapObject representing a list of ICD9CM codes.

Following is a UML Class diagram showing the neighborhood around MapObject

This is used in conjunction with Mapping to represent all of the data in a row of the MRMAP file.

Author:
Brian Carlsen, Deborah Shapiro

Nested Class Summary
 
Nested classes inherited from class gov.nih.nlm.umls.meta.SourceElement
SourceElement.BySourceComparator, SourceElement.BySourceRestrictor
 
Method Summary
 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).
 String getSourceIdentifier()
          Returns the source asserted unique identifier (FROMSID or TOSID).
 SourceIdentifierType getType()
          Returns the type SourceIdentifierType (FROMTYPE or TOTYPE).
 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 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 interface gov.nih.nlm.umls.meta.SourceElement
getSource, setSource
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getSourceIdentifier

public String getSourceIdentifier()
Returns the source asserted unique identifier (FROMSID or TOSID).

Returns:
the source asserted unique identifier

setSourceIdentifier

public void setSourceIdentifier(String sid)
Sets the source asserted unique identifier (FROMSID or TOSID).

Parameters:
sid - source asserted unique identifier

getSid

public String getSid()
Returns the source asserted unique identifier (FROMSID or TOSID). This method is shorthand for getSourceIdentifier().

Returns:
the source asserted unique identifier

setSid

public void setSid(String sid)
Sets the source asserted unique identifier (FROMSID or TOSID). This method is shorthand for setSourceIdentifier(String).

Parameters:
sid - source asserted unique identifier

getIdentifier

public String getIdentifier()
Returns the unique identifier (FROMID or TOID).

Returns:
the unique identifier

setIdentifier

public void setIdentifier(String id)
Sets the unique identifier (FROMID or TOID).

Parameters:
id - unique identifier

getId

public String getId()
Returns the unique identifier (FROMID or TOID). This method is shorthand for getIdentifier().

Returns:
the unique identifier

setId

public void setId(String id)
Sets the unique identifier (FROMID or TOID). This method is shorthand for setIdentifier(String).

Parameters:
id - unique identifier

getExpression

public String getExpression()
Returns the expression (FROMEXPR or TOEXPR).

Returns:
the expression

setExpression

public void setExpression(String expr)
Sets the expression (FROMEXPR or TOEXPR).

Parameters:
expr - expression

getExpr

public String getExpr()
Returns the expression (FROMEXPR or TOEXPR). This method is shorthand for getExpression().

Returns:
the expression

setExpr

public void setExpr(String expr)
Sets the expression (FROMEXPR or TOEXPR). This method is shorthand for setExpression(String).

Parameters:
expr - expression

getType

public SourceIdentifierType getType()
Returns the type SourceIdentifierType (FROMTYPE or TOTYPE).

Returns:
the type

setType

public void setType(SourceIdentifierType type)
Sets the type (FROMTYPE or TOTYPE).

Parameters:
type - SourceIdentifierType

getRule

public String getRule()
Returns the machine processable rule for when mapping is valid (FROMRULE or TORULE).

Returns:
the rule

setRule

public void setRule(String rule)
Sets the machine processable rule for when mapping is valid (FROMRULE or TORULE).

Parameters:
rule - the rule

getRestriction

public String getRestriction()
Returns the restriction (FROMRES or TORES).

Returns:
the restriction

setRestriction

public void setRestriction(String res)
Sets the restriction (FROMRES or TORES).

Parameters:
res - restriction

getRes

public String getRes()
Returns the restriction (FROMRES or TORES). This method is shorthand for getRestriction().

Returns:
the restriction

setRes

public void setRes(String res)
Sets the restriction (FROMRES or TORES). This method is shorthand for setRestriction(String).

Parameters:
res - restriction

getKeyFields

public String getKeyFields()
Returns a String key which can be used by equals, compareTo, and hashCode methods.

Returns:
a String composed from key Mapping fields


Copyright ©2005