|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.impl.TermAttributeImpl
public class TermAttributeImpl
Default implementation of the TermAttribute interface.
| Constructor Summary | |
|---|---|
TermAttributeImpl()
Instantiates an empty TermAttribute. |
|
TermAttributeImpl(TermAttribute ta)
Instantiates a TermAttribute from the specified TermAttribute. |
|
| Method Summary | |
|---|---|
void |
addStringAttribute(StringAttribute sa)
Adds the specified StringAttribute. |
void |
clearStringAttributes()
Removes all StringAttributes. |
int |
compareTo(Object o)
Compares this TermAttribute 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 TermAttribute. |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
String |
getLui()
Shorthand for getTermIdentifier(). |
StringAttribute[] |
getStringAttributes()
Returns all StringAttributes. |
List |
getStringAttributesAsList()
Returns all StringAttributes as a List. |
Term |
getTerm()
Returns the Term. |
String |
getTermIdentifier()
Returns the term identifier (LUI). |
int |
hashCode()
Return a hash code based on key fields. |
void |
removeStringAttribute(StringAttribute sa)
Removes the specified StringAttribute. |
void |
setConcept(Concept concept)
Sets the Concept that holds this TermAttribute. |
void |
setLui(String lui)
Shorthand for setTermIdentifier(String). |
void |
setStringAttributes(List sa)
Replaces the StringAttributes with the ones in the specified List. |
void |
setStringAttributes(StringAttribute[] sa)
Replaces the StringAttributes with the ones in the specified array. |
void |
setTerm(Term term)
Sets the Term to which this TermAttribute refers. |
void |
setTermIdentifier(String lui)
Sets the term identifier (LUI). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TermAttributeImpl()
TermAttribute.
public TermAttributeImpl(TermAttribute ta)
TermAttribute from the specified TermAttribute.
ta - TermAttribute to be copied| Method Detail |
|---|
public Term getTerm()
Term.
getTerm in interface TermElementTermpublic void setTerm(Term term)
Term to which this TermAttribute refers.
setTerm in interface TermElementterm - Term to which this TermAttribute referspublic String getLui()
getTermIdentifier().
getLui in interface TermAttributepublic void setLui(String lui)
setTermIdentifier(String).
setLui in interface TermAttributelui - the LUIpublic String getTermIdentifier()
getTermIdentifier in interface TermAttributepublic void setTermIdentifier(String lui)
setTermIdentifier in interface TermAttributelui - the LUIpublic StringAttribute[] getStringAttributes()
StringAttributes.
getStringAttributes in interface TermAttributeStringAttributespublic List getStringAttributesAsList()
StringAttributes as a List.
getStringAttributesAsList in interface TermAttributeList of StringAttributespublic void addStringAttribute(StringAttribute sa)
StringAttribute.
addStringAttribute in interface TermAttributesa - the StringAttribute to be addedpublic void removeStringAttribute(StringAttribute sa)
StringAttribute.
removeStringAttribute in interface TermAttributesa - the StringAttribute to be removedpublic void clearStringAttributes()
StringAttributes.
clearStringAttributes in interface TermAttributepublic void setStringAttributes(StringAttribute[] sa)
StringAttributes with the ones in the specified array.
setStringAttributes in interface TermAttributesa - a StringAttribute[]public void setStringAttributes(List sa)
StringAttributes with the ones in the specified List.
setStringAttributes in interface TermAttributesa - a List of StringAttributespublic Concept getConcept()
Concept that holds this TermAttribute.
getConcept in interface ConceptElementConcept that holds this TermAttributepublic void setConcept(Concept concept)
Concept that holds this TermAttribute.
setConcept in interface ConceptElementconcept - the Concept that holds this TermAttributepublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface TermAttributeString 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
TermAttribute 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)
TermAttribute 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 object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||