|
|||||||||
| 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
public class 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 AttributeContexts. |
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 AttributeContexts. |
List |
getAttributeContextsAsList()
Returns all AttributeContexts 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 AttributeContexts with the ones in the specified array. |
void |
setAttributeContexts(List acs)
Replaces the AttributeContexts 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 copied| Method Detail |
|---|
public TermAttribute getTermAttribute()
TermAttribute that holds this StringAttribute.
getTermAttribute in interface StringAttributeTermAttribute that holds this StringAttributepublic void setTermAttribute(TermAttribute ta)
TermAttribute that holds this StringAttribute.
setTermAttribute in interface StringAttributeta - the TermAttribute that holds this StringAttributepublic StringInfo getStringInfo()
StringInfo.
getStringInfo in interface StringAttributeStringInfopublic void setStringInfo(StringInfo si)
StringInfo.
setStringInfo in interface StringAttributesi - the StringInfopublic AttributeContext[] getAttributeContexts()
AttributeContexts.
getAttributeContexts in interface StringAttributeAttributeContextspublic List getAttributeContextsAsList()
AttributeContexts as a List.
getAttributeContextsAsList in interface StringAttributeList of AttributeContextspublic void addAttributeContext(AttributeContext ac)
AttributeContext.
addAttributeContext in interface StringAttributeac - the AttributeContext to be addedpublic void removeAttributeContext(AttributeContext ac)
AttributeContext.
removeAttributeContext in interface StringAttributeac - the AttributeContext to be removedpublic void clearAttributeContexts()
AttributeContexts.
clearAttributeContexts in interface StringAttributepublic void setAttributeContexts(AttributeContext[] acs)
AttributeContexts with the ones in the specified array.
setAttributeContexts in interface StringAttributeacs - a AttributeContext[]public void setAttributeContexts(List acs)
AttributeContexts with the ones in the specified List.
setAttributeContexts in interface StringAttributeacs - a List of AttributeContextspublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface StringAttributeString composed from the cui, aui, sui,
versioned source, tty, and code.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
StringAttribute 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)
StringAttribute 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 | ||||||||