|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.umls.meta.impl.StringAttributeImpl
Default implementation of the StringAttribute
interface.
Constructor Summary | |
StringAttributeImpl()
Instantiates an empty StringAttribute . |
|
StringAttributeImpl(StringAttribute sa)
Instantiates a StringAttribute from the specified StringAttribute . |
Method Summary | |
void |
addAttributeContext(AttributeContext ac)
Adds the specified AttributeContext . |
void |
clearAttributeContexts()
Removes all AttributeContext s. |
int |
compareTo(Object o)
Compares this StringAttribute to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
AttributeContext[] |
getAttributeContexts()
Returns all AttributeContext s. |
List |
getAttributeContextsAsList()
Returns all AttributeContext s as a List . |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
StringInfo |
getStringInfo()
Returns the StringInfo . |
TermAttribute |
getTermAttribute()
Returns the TermAttribute that holds this StringAttribute . |
int |
hashCode()
Return a hash code based on key fields. |
void |
removeAttributeContext(AttributeContext ac)
Removes the specified AttributeContext . |
void |
setAttributeContexts(AttributeContext[] acs)
Replaces the AttributeContext s with the ones in the specified array. |
void |
setAttributeContexts(List acs)
Replaces the AttributeContext s with the ones in the specified List . |
void |
setStringInfo(StringInfo si)
Sets the StringInfo . |
void |
setTermAttribute(TermAttribute ta)
Sets the TermAttribute that holds this StringAttribute . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringAttributeImpl()
StringAttribute
.
public StringAttributeImpl(StringAttribute sa)
StringAttribute
from the specified StringAttribute
.
sa
- StringAttribute
to be copiedMethod Detail |
public TermAttribute getTermAttribute()
TermAttribute
that holds this StringAttribute
.
getTermAttribute
in interface StringAttribute
TermAttribute
that holds this StringAttribute
public void setTermAttribute(TermAttribute ta)
TermAttribute
that holds this StringAttribute
.
setTermAttribute
in interface StringAttribute
ta
- the TermAttribute
that holds this StringAttribute
public StringInfo getStringInfo()
StringInfo
.
getStringInfo
in interface StringAttribute
StringInfo
public void setStringInfo(StringInfo si)
StringInfo
.
setStringInfo
in interface StringAttribute
si
- the StringInfo
public AttributeContext[] getAttributeContexts()
AttributeContext
s.
getAttributeContexts
in interface StringAttribute
AttributeContext
spublic List getAttributeContextsAsList()
AttributeContext
s as a List
.
getAttributeContextsAsList
in interface StringAttribute
List
of AttributeContext
spublic void addAttributeContext(AttributeContext ac)
AttributeContext
.
addAttributeContext
in interface StringAttribute
ac
- the AttributeContext
to be addedpublic void removeAttributeContext(AttributeContext ac)
AttributeContext
.
removeAttributeContext
in interface StringAttribute
ac
- the AttributeContext
to be removedpublic void clearAttributeContexts()
AttributeContext
s.
clearAttributeContexts
in interface StringAttribute
public void setAttributeContexts(AttributeContext[] acs)
AttributeContext
s with the ones in the specified array.
setAttributeContexts
in interface StringAttribute
acs
- a AttributeContext
[]
public void setAttributeContexts(List acs)
AttributeContext
s with the ones in the specified List
.
setAttributeContexts
in interface StringAttribute
acs
- a List
of AttributeContext
spublic String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface StringAttribute
String
composed from the cui, aui, sui,
versioned source, tty, and code.public int hashCode()
public boolean equals(Object o)
true
if the specified object is
equal to this object. The specified object must be an
StringAttribute
with matching key fields.
o
- an Object
to compare against
true
if Object o is equal
false
otherwisepublic int compareTo(Object o)
StringAttribute
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 |