|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SourceContext
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/interfaces inherited from interface 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 |
|---|
int getContextNumber()
int context numbervoid setContextNumber(int cxn)
cxn - the int context numberint getCxn()
getContextNumber()
intvoid setCxn(int cxn)
setContextNumber(int).
cxn - int context numberString getPaui()
getParentAtomIdentifier().
void setPaui(String paui)
setParentAtomIdentifier(String).
paui - the PAUIString getParentAtomIdentifier()
void setParentAtomIdentifier(String paui)
paui - the PAUIString getPathToRootAsString()
List getPathToRootAsList()
List of AUI values.
List of AUI valuesString[] getPathToRoot()
String[]
of AUI values.
String[]
of AUI valuesString getPtr()
getPathToRootAsString().
void setPathToRoot(String ptr)
ptr - the path to the rootvoid setPtr(String ptr)
setPathToRoot(String).
ptr - the path to the rootContextMember[] getContextMembers()
ContextMembers. These are the ancestors,
children, and siblings.
ContextMembersList getContextMembersAsList()
ContextMembers. These are the ancestors,
children, and siblings.
ContextMembersvoid addContextMember(ContextMember cm)
ContextMember.
cm - the ContextMember to be addedvoid removeContextMember(ContextMember cm)
ContextMember.
cm - the ContextMember to be removedvoid clearContextMembers()
ContextMembers.
void setContextMembers(ContextMember[] cms)
ContextMembers with the ones in the specified array.
cms - a ContextMember[]void setContextMembers(List cms)
ContextMembers with the ones in the specified List.
cms - a List of ContextMembersContextMember[] getSelfMembers()
ContextMembers that have the context
member label (CXL) of "CCP" or self.
ContextMember[] of members with label "CCP"List getSelfMembersAsList()
ContextMembers that have the context
member label (CXL) of "CCP" or self.
List of members with label "CCP"ContextMember[] getChildMembers()
ContextMembers that have the context
member label (CXL) of "CHD" or child.
ContextMember[] of members with label "CHD"List getChildMembersAsList()
ContextMembers that have the context
member label (CXL) of "CHD" or child.
ContextMember[] of members with label "CHD"ContextMember[] getAncestorMembers()
ContextMembers that have the context
member label (CXL) of "ANC" or self.
ContextMember[] of members with label "ANC"List getAncestorMembersAsList()
ContextMembers that have the context
member label (CXL) of "ANC" or self.
ContextMember[] of members with label "ANC"ContextMember[] getSiblingMembers()
ContextMembers that have the context
member label (CXL) of "SIB" or self.
ContextMember[] of members with label "SIB"List getSiblingMembersAsList()
ContextMembers that have the context
member label (CXL) of "SIB" or self.
ContextMember[] of members with label "SIB"StringContext getStringContext()
StringContext that holds this SourceContext.
StringContext that holds this SourceContextvoid setStringContext(StringContext sc)
StringContext that holds this SourceContext.
sc - the StringContext that holds this SourceContextString 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 | ||||||||