|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents grouping of SourceContext
s which share
the same Source
abbreviation and code.
Following is a UML Class diagram showing the neighborhood around StringContext
ContextGroup
Nested Class Summary |
Nested classes inherited from class gov.nih.nlm.umls.meta.AtomElement |
AtomElement.ByLanguageRestrictor, AtomElement.BySourceRestrictor |
Nested classes inherited from class gov.nih.nlm.umls.meta.SourceElement |
SourceElement.BySourceComparator, SourceElement.BySourceRestrictor |
Method Summary | |
void |
addSourceContext(SourceContext sc)
Adds the specified SourceContext . |
void |
clearSourceContexts()
Removes all SourceContext s. |
ContextGroup |
getContextGroup()
Returns the ContextGroup that holds this StringContext . |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
SourceContext[] |
getSourceContexts()
Returns all SourceContext s. |
List |
getSourceContextsAsList()
Returns all SourceContext s as a List . |
void |
removeSourceContext(SourceContext sc)
Removes the specified SourceContext . |
void |
setContextGroup(ContextGroup cg)
Sets the ContextGroup that holds this StringContext . |
void |
setSourceContexts(List scs)
Replace the SourceContext s with the ones in the specified List . |
void |
setSourceContexts(SourceContext[] scs)
Replace the SourceContext s with the ones in the specified array. |
Methods inherited from interface java.lang.Comparable |
compareTo |
Methods inherited from interface gov.nih.nlm.umls.meta.AtomElement |
getAtom, setAtom |
Methods inherited from interface gov.nih.nlm.umls.meta.SourceElement |
getSource, setSource |
Method Detail |
public SourceContext[] getSourceContexts()
SourceContext
s.
SourceContext
spublic List getSourceContextsAsList()
SourceContext
s as a List
.
SourceContext
spublic void addSourceContext(SourceContext sc)
SourceContext
.
sc
- the SourceContext
to be addedpublic void removeSourceContext(SourceContext sc)
SourceContext
.
sc
- the SourceContext
to be removedpublic void clearSourceContexts()
SourceContext
s.
public void setSourceContexts(SourceContext[] scs)
SourceContext
s with the ones in the specified array.
scs
- a SourceContext
[]
public void setSourceContexts(List scs)
SourceContext
s with the ones in the specified List
.
scs
- a List
of SourceContext
spublic ContextGroup getContextGroup()
ContextGroup
that holds this StringContext
.
ContextGroup
that holds this StringContext
public void setContextGroup(ContextGroup cg)
ContextGroup
that holds this StringContext
.
cg
- the ContextGroup
that holds this StringContext
public String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
String
composed from key Atom
fields
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |