|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.umls.meta.impl.MetaDescriptionImpl
Default implementation of the MetaDescription
interface. The sole function of this class is to read a line from MRDOC.
Field Summary | |
protected String |
key_fields
|
protected boolean |
key_fields_flag
|
Constructor Summary | |
MetaDescriptionImpl()
Instantiates an empty MetaDescriptionImpl . |
|
MetaDescriptionImpl(MetaDescription md)
This is a copy constructor for MetaDescription . |
|
MetaDescriptionImpl(String mrdoc_row)
Constructor that takes a row from the MRDOC file. |
Method Summary | |
int |
compareTo(Object o)
Compares this MetaDescription to another one. |
boolean |
equals(Object o)
Returns true if the specified object is equal to this object. |
String |
getExplain()
Returns the explain field. |
String |
getKey()
Returns the key. |
String |
getKeyFields()
Returns a String key which can be used by equals, compareTo, and
hashCode methods. |
String |
getType()
Returns the type. |
String |
getValue()
Returns the more detailed description. |
int |
hashCode()
Return a hash code based on key fields. |
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 MetaDescriptionImpl()
MetaDescriptionImpl
.
public MetaDescriptionImpl(String mrdoc_row)
mrdoc_row
- row from MRDOC filepublic MetaDescriptionImpl(MetaDescription md)
MetaDescription
.
md
- MetaDescription
to be copiedMethod Detail |
public String getType()
getType
in interface MetaDescription
public String getKey()
getKey
in interface MetaDescription
public String getExplain()
getExplain
in interface MetaDescription
public String getValue()
getValue
in interface MetaDescription
public String getKeyFields()
String
key which can be used by equals, compareTo, and
hashCode methods.
getKeyFields
in interface MetaDescription
String
composed from the key, value, and type.public boolean equals(Object o)
true
if the specified object is equal to this object.
The specified object must be a MetaDescription
with matching key
fields.
o
- an Object
to compare against
true
if Object o is equal
false
otherwisepublic int hashCode()
public int compareTo(Object o)
MetaDescription
to another one. Results
are indeterminate if the specified parameter is not of the
same class.
compareTo
in interface Comparable
o
- the Object to be compared.
ClassCastException
- if the specified object's type prevents it
from being compared to this Object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |