|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.impl.TermImpl
public class TermImpl
Default implementation of the Term interface.
| Constructor Summary | |
|---|---|
TermImpl()
Instantiates an empty Term. |
|
TermImpl(Term term)
Instantiates a Term from the specified Term. |
|
| Method Summary | |
|---|---|
void |
addTermAttribute(TermAttribute ta)
Adds the specified TermAttribute. |
void |
addTermVariant(StringInfo tv)
Adds the specified term variant. |
void |
clearTermAttributes()
Removes all TermAttributes. |
void |
clearTermVariants()
Removes all term variants. |
int |
compareTo(Object o)
Compares this Term to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
Concept |
getConcept()
Returns the Concept that holds this Term. |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
Language |
getLanguage()
Returns the Language (LAT). |
Language |
getLat()
Shorthand for getLanguage(). |
String |
getLui()
Shorthand for getTermIdentifier(). |
String |
getName()
Sets the name (STR). |
String |
getStr()
Shorthand for getName(). |
TermAttribute[] |
getTermAttributes()
Returns all TermAttributes. |
List |
getTermAttributesAsList()
Returns all TermAttributes as a List. |
String |
getTermIdentifier()
Returns the term identifier (LUI). |
TermStatus |
getTermStatus()
Returns the TermStatus (TS). |
StringInfo[] |
getTermVariants()
Returns all StringInfo term variants. |
List |
getTermVariantsAsList()
Returns all StringInfo term variants as a List. |
TermStatus |
getTs()
Shorthand for getTermStatus(). |
int |
hashCode()
Return a hash code based on key fields. |
boolean |
hasPreferredLui()
Shorthand for hasPreferredTermIdentifier() |
boolean |
hasPreferredTermIdentifier()
Indicates whether or not this Term is the preferred Term
of the Concept. |
void |
removeTermAttribute(TermAttribute ta)
Removes the specified TermAttribute. |
void |
removeTermVariant(StringInfo tv)
Removes the specified term variant. |
void |
setConcept(Concept concept)
Sets the Concept that holds this Term. |
void |
setLanguage(Language lat)
Sets the Language (LAT). |
void |
setLat(Language lat)
Shorthand for setLanguage(Language). |
void |
setLui(String lui)
Shorthand for setTermIdentifier(String). |
void |
setName(String str)
Sets the name (STR). |
void |
setStr(String str)
Shorthand for setName(String). |
void |
setTermAttributes(List tas)
Replaces TermAttributes with the specified List |
void |
setTermAttributes(TermAttribute[] tas)
Replaces the TermAttributes with the specified TermAttribute objects. |
void |
setTermIdentifier(String lui)
Sets the term identifier (LUI). |
void |
setTermStatus(TermStatus ts)
Sets the TermStatus (TS). |
void |
setTermVariants(List tvs)
Replaces term variants with the specified List |
void |
setTermVariants(StringInfo[] tvs)
Replaces term variants with the specified StringInfo objects. |
void |
setTs(TermStatus ts)
Shorthand for setTermStatus(TermStatus). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TermImpl()
Term.
public TermImpl(Term term)
Term from the specified Term.
term - Term to be copied| Method Detail |
|---|
public Language getLanguage()
Language (LAT).
getLanguage in interface TermLanguagepublic Language getLat()
getLanguage().
getLat in interface TermLanguagepublic void setLanguage(Language lat)
Language (LAT).
setLanguage in interface Termlat - the Languagepublic void setLat(Language lat)
setLanguage(Language).
setLat in interface Termlat - the Languagepublic TermStatus getTermStatus()
TermStatus (TS).
getTermStatus in interface TermTermStatuspublic TermStatus getTs()
getTermStatus().
getTs in interface TermTermStatuspublic void setTermStatus(TermStatus ts)
TermStatus (TS).
setTermStatus in interface Termts - the TermStatuspublic void setTs(TermStatus ts)
setTermStatus(TermStatus).
setTs in interface Termts - the TermStatuspublic String getLui()
getTermIdentifier().
getLui in interface Termpublic void setLui(String lui)
setTermIdentifier(String).
setLui in interface Termlui - the LUIpublic String getTermIdentifier()
getTermIdentifier in interface Termpublic void setTermIdentifier(String lui)
setTermIdentifier in interface Termlui - the LUIpublic String getName()
getName in interface Termpublic String getStr()
getName().
getStr in interface Termpublic void setName(String str)
setName in interface Termstr - the namepublic void setStr(String str)
setName(String).
setStr in interface Termstr - the namepublic StringInfo[] getTermVariants()
StringInfo term variants.
getTermVariants in interface TermStringInfo objectspublic List getTermVariantsAsList()
StringInfo term variants as a List.
getTermVariantsAsList in interface TermStringInfo term variants as a Listpublic void addTermVariant(StringInfo tv)
addTermVariant in interface Termtv - a StringInfo term variant to addpublic void clearTermVariants()
clearTermVariants in interface Termpublic void removeTermVariant(StringInfo tv)
removeTermVariant in interface Termtv - a StringInfo term variant to removepublic void setTermVariants(StringInfo[] tvs)
StringInfo objects.
setTermVariants in interface Termtvs - an array of StringInfo objectspublic void setTermVariants(List tvs)
List
setTermVariants in interface Termtvs - a List of StringInfo objectspublic TermAttribute[] getTermAttributes()
TermAttributes.
getTermAttributes in interface TermTermAttribute objectspublic List getTermAttributesAsList()
TermAttributes as a List.
getTermAttributesAsList in interface TermTermAttributes as a Listpublic void addTermAttribute(TermAttribute ta)
TermAttribute.
addTermAttribute in interface Termta - a TermAttribute to addpublic void clearTermAttributes()
TermAttributes.
clearTermAttributes in interface Termpublic void removeTermAttribute(TermAttribute ta)
TermAttribute.
removeTermAttribute in interface Termta - the TermAttribute to removepublic void setTermAttributes(TermAttribute[] tas)
TermAttributes with the specified TermAttribute objects.
setTermAttributes in interface Termtas - an array of TermAttribute objectspublic void setTermAttributes(List tas)
TermAttributes with the specified List
setTermAttributes in interface Termtas - a List of TermAttribute objectspublic Concept getConcept()
Concept that holds this Term.
getConcept in interface ConceptElementConcept that holds this Termpublic void setConcept(Concept concept)
Concept that holds this Term.
setConcept in interface ConceptElementconcept - the Concept that holds this Termpublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface TermString composed from the cui and lui.public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
true if the specified object is
equal to this object. The specified object must be an
Term with matching key fields.
equals in class Objecto - an Object to compare against
true if Object o is equal
false otherwisepublic int compareTo(Object o)
Term to another one. Results
are indeterminate if the specified parameter is not of the
same class.
compareTo in interface Comparableo - the Object to compare to
int representing the relative ordering
of this and the compare-to objectpublic boolean hasPreferredTermIdentifier()
Term is the preferred Term
of the Concept. In other words, does this Term have
the same LUI as the preferred Term of the Concept.
hasPreferredTermIdentifier in interface Termtrue if so, false otherwisepublic boolean hasPreferredLui()
hasPreferredTermIdentifier()
hasPreferredLui in interface Termtrue if so, false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||