|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.impl.StringInfoImpl
public class StringInfoImpl
Default implementation of the StringInfo interface.
| Constructor Summary | |
|---|---|
StringInfoImpl()
Instantiates an empty StringInfo. |
|
StringInfoImpl(StringInfo si)
Instantiates a StringInfo from the specified StringInfo. |
|
| Method Summary | |
|---|---|
void |
addAtom(Atom atom)
Adds the specified Atom. |
void |
clearAtoms()
Removes all Atoms. |
int |
compareTo(Object o)
Compares this StringInfo to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
Atom[] |
getAtoms()
Returns all Atoms. |
List |
getAtomsAsList()
Returns all Atoms as a List. |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
String |
getName()
Sets the name (STR). |
String |
getStr()
Shorthand for getName(). |
String |
getStringIdentifier()
Return the string identifier (SUI). |
StringType |
getStringType()
Returns the StringType (STT). |
StringType |
getStt()
Shorthand for getStringType(). |
String |
getSui()
Shorthand for getStringIdentifier(). |
Term |
getTerm()
Returns the parent Term. |
int |
hashCode()
Return a hash code based on key fields. |
boolean |
hasPreferredStringIdentifier()
Indicates whether or not this has the preferred string identifier of the Term it is part of. |
boolean |
hasPreferredSui()
Shorthand for hasPreferredStringIdentifier(). |
void |
removeAtom(Atom atom)
Removes the specified Atom. |
void |
setAtoms(Atom[] l_atoms)
Replaces the Atoms with those in the specified array. |
void |
setAtoms(List atoms)
Replaces the Atoms with those in the specified List |
void |
setName(String str)
Sets the name (STR). |
void |
setStr(String str)
Shorthand for setName(String). |
void |
setStringIdentifier(String sui)
Sets the string identifier (SUI). |
void |
setStringType(StringType stt)
Sets the StringType (STT). |
void |
setStt(StringType stt)
Shorthand for setStringType(StringType). |
void |
setSui(String sui)
Shorthand for setStringIdentifier(String). |
void |
setTerm(Term term)
Sets the parent Term. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringInfoImpl()
StringInfo.
public StringInfoImpl(StringInfo si)
StringInfo from the specified StringInfo.
si - StringInfo to be copied| Method Detail |
|---|
public Term getTerm()
Term.
getTerm in interface TermElementTermpublic void setTerm(Term term)
Term.
setTerm in interface TermElementterm - the parent Termpublic StringType getStringType()
StringType (STT).
getStringType in interface StringInfoStringTypepublic StringType getStt()
getStringType().
getStt in interface StringInfoStringTypepublic void setStringType(StringType stt)
StringType (STT).
setStringType in interface StringInfostt - the STTpublic void setStt(StringType stt)
setStringType(StringType).
setStt in interface StringInfostt - the STTpublic String getSui()
getStringIdentifier().
getSui in interface StringInfopublic void setSui(String sui)
setStringIdentifier(String).
setSui in interface StringInfosui - the SUIpublic String getStringIdentifier()
getStringIdentifier in interface StringInfopublic void setStringIdentifier(String sui)
setStringIdentifier in interface StringInfosui - the SUIpublic String getName()
getName in interface StringInfopublic String getStr()
getName().
getStr in interface StringInfopublic void setName(String str)
setName in interface StringInfostr - the namepublic void setStr(String str)
setName(String).
setStr in interface StringInfostr - the namepublic Atom[] getAtoms()
Atoms.
getAtoms in interface StringInfoAtomspublic List getAtomsAsList()
Atoms as a List.
getAtomsAsList in interface StringInfoAtoms as a Listpublic void addAtom(Atom atom)
Atom.
addAtom in interface StringInfoatom - the Atom to addpublic void removeAtom(Atom atom)
Atom.
removeAtom in interface StringInfoatom - the Atom to removepublic void clearAtoms()
Atoms.
clearAtoms in interface StringInfopublic void setAtoms(Atom[] l_atoms)
Atoms with those in the specified array.
setAtoms in interface StringInfol_atoms - an array of Atomspublic void setAtoms(List atoms)
Atoms with those in the specified List
setAtoms in interface StringInfoatoms - a List of Atomspublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface StringInfoString composed from the sui.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
StringInfo 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)
StringInfo 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 hasPreferredStringIdentifier()
Term it is part of. In other words, does this StringInfo have
the same SUI as the preferred StringInfo of the Term.
hasPreferredStringIdentifier in interface StringInfotrue if so, false otherwisepublic boolean hasPreferredSui()
hasPreferredStringIdentifier().
hasPreferredSui in interface StringInfotrue if so, false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||