|
||||||||||
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
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 StringAttribute s. |
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 StringAttribute s. |
List |
getStringAttributesAsList()
Returns all StringAttribute s 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 StringAttribute s with the ones in the specified List . |
void |
setStringAttributes(StringAttribute[] sa)
Replaces the StringAttribute s 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 copiedMethod Detail |
public Term getTerm()
Term
.
getTerm
in interface TermElement
Term
public void setTerm(Term term)
Term
to which this TermAttribute
refers.
setTerm
in interface TermElement
term
- Term
to which this TermAttribute
referspublic String getLui()
getTermIdentifier()
.
getLui
in interface TermAttribute
public void setLui(String lui)
setTermIdentifier(String)
.
setLui
in interface TermAttribute
lui
- the LUIpublic String getTermIdentifier()
getTermIdentifier
in interface TermAttribute
public void setTermIdentifier(String lui)
setTermIdentifier
in interface TermAttribute
lui
- the LUIpublic StringAttribute[] getStringAttributes()
StringAttribute
s.
getStringAttributes
in interface TermAttribute
StringAttribute
spublic List getStringAttributesAsList()
StringAttribute
s as a List
.
getStringAttributesAsList
in interface TermAttribute
List
of StringAttribute
spublic void addStringAttribute(StringAttribute sa)
StringAttribute
.
addStringAttribute
in interface TermAttribute
sa
- the StringAttribute
to be addedpublic void removeStringAttribute(StringAttribute sa)
StringAttribute
.
removeStringAttribute
in interface TermAttribute
sa
- the StringAttribute
to be removedpublic void clearStringAttributes()
StringAttribute
s.
clearStringAttributes
in interface TermAttribute
public void setStringAttributes(StringAttribute[] sa)
StringAttribute
s with the ones in the specified array.
setStringAttributes
in interface TermAttribute
sa
- a StringAttribute
[]
public void setStringAttributes(List sa)
StringAttribute
s with the ones in the specified List
.
setStringAttributes
in interface TermAttribute
sa
- a List
of StringAttribute
spublic Concept getConcept()
Concept
that holds this TermAttribute
.
getConcept
in interface ConceptElement
Concept
that holds this TermAttribute
public void setConcept(Concept concept)
Concept
that holds this TermAttribute
.
setConcept
in interface ConceptElement
concept
- the Concept
that holds this TermAttribute
public String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface TermAttribute
String
composed from the cui and lui.public int hashCode()
public 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.
o
- 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 Comparable
o
- 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 |