|
|||||||||
| 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
public class 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 StringContexts. |
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 StringContexts. |
List |
getStringContextsAsList()
Returns all StringContexts 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 StringContexts with the ones in the specified List. |
void |
setStringContexts(StringContext[] scs)
Replaces the StringContexts 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 copied| Method Detail |
|---|
public StringInfo getStringInfo()
StringInfo.
getStringInfo in interface ContextGroupStringInfopublic void setStringInfo(StringInfo string_info)
StringInfo.
setStringInfo in interface ContextGroupstring_info - the StringInfopublic StringContext[] getStringContexts()
StringContexts.
getStringContexts in interface ContextGroupStringContextspublic List getStringContextsAsList()
StringContexts as a List
getStringContextsAsList in interface ContextGroupList of StringContextspublic void addStringContext(StringContext sc)
StringContext.
addStringContext in interface ContextGroupsc - the StringContext to be addedpublic void removeStringContext(StringContext sc)
StringContext.
removeStringContext in interface ContextGroupsc - the StringContext to be removedpublic void clearStringContexts()
StringContexts.
clearStringContexts in interface ContextGrouppublic void setStringContexts(StringContext[] scs)
StringContexts with the ones in the specified array.
setStringContexts in interface ContextGroupscs - a StringContext[]public void setStringContexts(List scs)
StringContexts with the ones in the specified List.
setStringContexts in interface ContextGroupscs - a List of StringContextspublic Concept getConcept()
Concept that holds this ContextGroup.
getConcept in interface ConceptElementConcept that holds this ContextGrouppublic void setConcept(Concept concept)
Concept that holds this ContextGroup.
setConcept in interface ConceptElementconcept - the Concept that holds this ContextGrouppublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface ContextGroupString 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 a
ContextGroup 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)
ContextGroup 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 | ||||||||