|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.umls.meta.impl.ContextGroupImpl
Default implementation of the ContextGroup
interface.
Constructor Summary | |
ContextGroupImpl()
Instantiates an empty ContextGroup . |
|
ContextGroupImpl(ContextGroup cg)
Instantiates a ContextGroup from the specified ContextGroup . |
Method Summary | |
void |
addStringContext(StringContext sc)
Adds the specified StringContext . |
void |
clearStringContexts()
Removes all StringContext s. |
int |
compareTo(Object o)
Compares this ContextGroup 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 ContextGroup . |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
StringContext[] |
getStringContexts()
Returns all StringContext s. |
List |
getStringContextsAsList()
Returns all StringContext s as a List |
StringInfo |
getStringInfo()
Return the StringInfo . |
int |
hashCode()
Return a hash code based on key fields. |
void |
removeStringContext(StringContext sc)
Removes the specified StringContext . |
void |
setConcept(Concept concept)
Sets the Concept that holds this ContextGroup . |
void |
setStringContexts(List scs)
replaces the StringContext s with the ones in the specified List . |
void |
setStringContexts(StringContext[] scs)
Replaces the StringContext s with the ones in the specified array. |
void |
setStringInfo(StringInfo string_info)
Sets the StringInfo . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContextGroupImpl()
ContextGroup
.
public ContextGroupImpl(ContextGroup cg)
ContextGroup
from the specified ContextGroup
.
cg
- ContextGroup
to be copiedMethod Detail |
public StringInfo getStringInfo()
StringInfo
.
getStringInfo
in interface ContextGroup
StringInfo
public void setStringInfo(StringInfo string_info)
StringInfo
.
setStringInfo
in interface ContextGroup
string_info
- the StringInfo
public StringContext[] getStringContexts()
StringContext
s.
getStringContexts
in interface ContextGroup
StringContext
spublic List getStringContextsAsList()
StringContext
s as a List
getStringContextsAsList
in interface ContextGroup
List
of StringContext
spublic void addStringContext(StringContext sc)
StringContext
.
addStringContext
in interface ContextGroup
sc
- the StringContext
to be addedpublic void removeStringContext(StringContext sc)
StringContext
.
removeStringContext
in interface ContextGroup
sc
- the StringContext
to be removedpublic void clearStringContexts()
StringContext
s.
clearStringContexts
in interface ContextGroup
public void setStringContexts(StringContext[] scs)
StringContext
s with the ones in the specified array.
setStringContexts
in interface ContextGroup
scs
- a StringContext
[]
public void setStringContexts(List scs)
StringContext
s with the ones in the specified List
.
setStringContexts
in interface ContextGroup
scs
- a List
of StringContext
spublic Concept getConcept()
Concept
that holds this ContextGroup
.
getConcept
in interface ConceptElement
Concept
that holds this ContextGroup
public void setConcept(Concept concept)
Concept
that holds this ContextGroup
.
setConcept
in interface ConceptElement
concept
- the Concept
that holds this ContextGroup
public String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface ContextGroup
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 a
ContextGroup
with matching key fields.
o
- an Object
to compare against
true
if Object o is equal
false
otherwisepublic int compareTo(Object o)
ContextGroup
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 |