|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a context associated with a source and a string identifier.
A StringContext will have a number of SourceContexts
associated with it. The context number differentiates between
contexts within the same string and source.
Following is a UML Class diagram showing the neighborhood around SourceContext

StringContext| Nested Class Summary |
| Nested classes inherited from class gov.nih.nlm.umls.meta.AtomElement |
AtomElement.ByLanguageRestrictor, AtomElement.BySourceRestrictor |
| Method Summary | |
void |
addContextMember(ContextMember cm)
Adds the specified ContextMember. |
void |
clearContextMembers()
Removes all ContextMembers. |
ContextMember[] |
getAncestorMembers()
Returns only the ContextMembers that have the context
member label (CXL) of "ANC" or self. |
List |
getAncestorMembersAsList()
Returns only the ContextMembers that have the context
member label (CXL) of "ANC" or self. |
ContextMember[] |
getChildMembers()
Returns only the ContextMembers that have the context
member label (CXL) of "CHD" or child. |
List |
getChildMembersAsList()
Returns only the ContextMembers that have the context
member label (CXL) of "CHD" or child. |
ContextMember[] |
getContextMembers()
Returns the ContextMembers. |
List |
getContextMembersAsList()
Returns the ContextMembers. |
int |
getContextNumber()
Returns the context number (CXN). |
int |
getCxn()
Returns the context number (CXN). |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
String |
getParentAtomIdentifier()
Returns the parent atom identifier (PAUI). |
String[] |
getPathToRoot()
Returns the path to the root (PTR) as a String[]
of AUI values. |
List |
getPathToRootAsList()
Returns the path to the root (PTR) as a List of AUI values. |
String |
getPathToRootAsString()
Returns the path to the root (PTR) as a "." separated list of AUI values. |
String |
getPaui()
Returns the parent atom identifier (PAUI). |
String |
getPtr()
Returns the path to the root (PTR) as a "." separated list of AUI values. |
ContextMember[] |
getSelfMembers()
Returns only the ContextMembers that have the context
member label (CXL) of "CCP" or self. |
List |
getSelfMembersAsList()
Returns only the ContextMembers that have the context
member label (CXL) of "CCP" or self. |
ContextMember[] |
getSiblingMembers()
Returns only the ContextMembers that have the context
member label (CXL) of "SIB" or self. |
List |
getSiblingMembersAsList()
Returns only the ContextMembers that have the context
member label (CXL) of "SIB" or self. |
StringContext |
getStringContext()
Returns the StringContext that holds this SourceContext. |
void |
removeContextMember(ContextMember cm)
Removes the specified ContextMember. |
void |
setContextMembers(ContextMember[] cms)
Set the ContextMembers with the ones in the specified array. |
void |
setContextMembers(List cms)
Set the ContextMembers with the ones in the specified List. |
void |
setContextNumber(int cxn)
Sets the context number (CXN). |
void |
setCxn(int cxn)
Sets the context number (CXN). |
void |
setParentAtomIdentifier(String paui)
Sets the parent atom identifier (PAUI). |
void |
setPathToRoot(String ptr)
Sets the path to the root (PTR) as a "." separated list of AUI values. |
void |
setPaui(String paui)
Sets the parent atom identifier (PAUI). |
void |
setPtr(String ptr)
Sets the path to the root (PTR) as a "." separated list of AUI values. |
void |
setStringContext(StringContext sc)
Sets the StringContext that holds this SourceContext. |
| Methods inherited from interface gov.nih.nlm.umls.meta.AtomElement |
getAtom, setAtom |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Methods inherited from interface gov.nih.nlm.umls.meta.ContentViewElement |
getContentView, getCvf, setContentView, setCvf |
| Method Detail |
public int getContextNumber()
int context numberpublic void setContextNumber(int cxn)
cxn - the int context numberpublic int getCxn()
getContextNumber()
intpublic void setCxn(int cxn)
setContextNumber(int).
cxn - int context numberpublic String getPaui()
getParentAtomIdentifier().
public void setPaui(String paui)
setParentAtomIdentifier(String).
paui - the PAUIpublic String getParentAtomIdentifier()
public void setParentAtomIdentifier(String paui)
paui - the PAUIpublic String getPathToRootAsString()
public List getPathToRootAsList()
List of AUI values.
List of AUI valuespublic String[] getPathToRoot()
String[]
of AUI values.
String[]
of AUI valuespublic String getPtr()
getPathToRootAsString().
public void setPathToRoot(String ptr)
ptr - the path to the rootpublic void setPtr(String ptr)
setPathToRoot(String).
ptr - the path to the rootpublic ContextMember[] getContextMembers()
ContextMembers. These are the ancestors,
children, and siblings.
ContextMemberspublic List getContextMembersAsList()
ContextMembers. These are the ancestors,
children, and siblings.
ContextMemberspublic void addContextMember(ContextMember cm)
ContextMember.
cm - the ContextMember to be addedpublic void removeContextMember(ContextMember cm)
ContextMember.
cm - the ContextMember to be removedpublic void clearContextMembers()
ContextMembers.
public void setContextMembers(ContextMember[] cms)
ContextMembers with the ones in the specified array.
cms - a ContextMember[]public void setContextMembers(List cms)
ContextMembers with the ones in the specified List.
cms - a List of ContextMemberspublic ContextMember[] getSelfMembers()
ContextMembers that have the context
member label (CXL) of "CCP" or self.
ContextMember[] of members with label "CCP"public List getSelfMembersAsList()
ContextMembers that have the context
member label (CXL) of "CCP" or self.
List of members with label "CCP"public ContextMember[] getChildMembers()
ContextMembers that have the context
member label (CXL) of "CHD" or child.
ContextMember[] of members with label "CHD"public List getChildMembersAsList()
ContextMembers that have the context
member label (CXL) of "CHD" or child.
ContextMember[] of members with label "CHD"public ContextMember[] getAncestorMembers()
ContextMembers that have the context
member label (CXL) of "ANC" or self.
ContextMember[] of members with label "ANC"public List getAncestorMembersAsList()
ContextMembers that have the context
member label (CXL) of "ANC" or self.
ContextMember[] of members with label "ANC"public ContextMember[] getSiblingMembers()
ContextMembers that have the context
member label (CXL) of "SIB" or self.
ContextMember[] of members with label "SIB"public List getSiblingMembersAsList()
ContextMembers that have the context
member label (CXL) of "SIB" or self.
ContextMember[] of members with label "SIB"public StringContext getStringContext()
StringContext that holds this SourceContext.
StringContext that holds this SourceContextpublic void setStringContext(StringContext sc)
StringContext that holds this SourceContext.
sc - the StringContext that holds this SourceContextpublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
String composed from key SourceContext fields
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||