is represented here.
- Author:
- Brian Carlsen, Deborah Shapiro
getContextNumber
int getContextNumber()
- Returns the context number (CXN).
- Returns:
- the
int context number
setContextNumber
void setContextNumber(int cxn)
- Sets the context number (CXN).
- Parameters:
cxn - the int context number
getCxn
int getCxn()
- Returns the context number (CXN).
This is a shorthand for
getContextNumber()
- Returns:
- cxn context number
int
setCxn
void setCxn(int cxn)
- Sets the context number (CXN).
This is shorthand for
setContextNumber(int).
- Parameters:
cxn - int context number
getPaui
String getPaui()
- Returns the parent atom identifier (PAUI).
This is shorthand for
getParentAtomIdentifier().
- Returns:
- the PAUI
setPaui
void setPaui(String paui)
- Sets the parent atom identifier (PAUI).
This is shorthand for
setParentAtomIdentifier(String).
- Parameters:
paui - the PAUI
getParentAtomIdentifier
String getParentAtomIdentifier()
- Returns the parent atom identifier (PAUI).
- Returns:
- the PAUI
setParentAtomIdentifier
void setParentAtomIdentifier(String paui)
- Sets the parent atom identifier (PAUI).
- Parameters:
paui - the PAUI
getPathToRootAsString
String getPathToRootAsString()
- Returns the path to the root (PTR) as a "." separated list of AUI values.
- Returns:
- the path to the root
getPathToRootAsList
List getPathToRootAsList()
- Returns the path to the root (PTR) as a
List of AUI values.
- Returns:
- the path to the root as a
List of AUI values
getPathToRoot
String[] getPathToRoot()
- Returns the path to the root (PTR) as a
String[]
of AUI values.
- Returns:
- the path to the root as a
String[]
of AUI values
getPtr
String getPtr()
- Returns the path to the root (PTR) as a "." separated list of AUI values.
This is shorthand for
getPathToRootAsString().
- Returns:
- the path to the root
setPathToRoot
void setPathToRoot(String ptr)
- Sets the path to the root (PTR) as a "." separated list of AUI values.
- Parameters:
ptr - the path to the root
setPtr
void setPtr(String ptr)
- Sets the path to the root (PTR) as a "." separated list of AUI values.
This is shorthand for
setPathToRoot(String).
- Parameters:
ptr - the path to the root
getContextMembers
ContextMember[] getContextMembers()
- Returns all
ContextMembers. These are the ancestors,
children, and siblings.
- Returns:
- a sorted array of
ContextMembers
getContextMembersAsList
List getContextMembersAsList()
- Returns all
ContextMembers as a List. These are the ancestors,
children, and siblings.
- Returns:
- a sorted
List of ContextMembers
addContextMember
void addContextMember(ContextMember cm)
- Adds the specified
ContextMember.
- Parameters:
cm - the ContextMember to be added
removeContextMember
void removeContextMember(ContextMember cm)
- Removes the specified
ContextMember.
- Parameters:
cm - the ContextMember to be removed
clearContextMembers
void clearContextMembers()
- Removes all
ContextMembers.
setContextMembers
void setContextMembers(ContextMember[] cms)
- Replaces the
ContextMembers with the ones in the specified array.
- Parameters:
cms - a ContextMember[]
setContextMembers
void setContextMembers(List cms)
- Replaces the
ContextMembers with the ones in the specified List.
- Parameters:
cms - a List of ContextMembers
getHierarchicalCode
String getHierarchicalCode()
- Returns the hierarchical code (HCD).
- Returns:
- the hierarchical code
getHcd
String getHcd()
- Returns the hierarchical code (HCD).
This is shorthand for
getHierarchicalCode().
- Returns:
- the hierarchical code
setHierarchicalCode
void setHierarchicalCode(String hcd)
- Sets the hierarchical code (HCD).
- Parameters:
hcd - the hierarchical code
setHcd
void setHcd(String hcd)
- Sets the hierarchical code (HCD).
This is shorthand for
setHierarchicalCode(String).
- Parameters:
hcd - the hierarchical code
getAdditionalRelationshipLabel
AdditionalRelationshipLabel getAdditionalRelationshipLabel()
- Returns the
AdditionalRelationshipLabel (RELA) from the context member to its parent.
- Returns:
- the
AdditionalRelationshipLabel
getRela
AdditionalRelationshipLabel getRela()
- Returns the
AdditionalRelationshipLabel (RELA) from the context member to its parent.
This is shorthand for getAdditionalRelationshipLabel().
- Returns:
- the
AdditionalRelationshipLabel
setAdditionalRelationshipLabel
void setAdditionalRelationshipLabel(AdditionalRelationshipLabel rela)
- Sets the
AdditionalRelationshipLabel (RELA) from the context member to its parent.
- Parameters:
rela - the AdditionalRelationshipLabel
setRela
void setRela(AdditionalRelationshipLabel rela)
- Sets the
AdditionalRelationshipLabel (RELA) from the context member to its parent.
This is shorthand for setAdditionalRelationshipLabel(AdditionalRelationshipLabel).
- Parameters:
rela - the AdditionalRelationshipLabel
getSelfMember
ContextMember getSelfMember()
- Returns the
ContextMember that has the context
member label (CXL) of "CCP" or self.
- Returns:
ContextMember with label "CCP"
getChildMembers
ContextMember[] getChildMembers()
- Returns only the
ContextMembers that have the context
member label (CXL) of "CHD" or child.
- Returns:
ContextMember[] of members with label "CHD"
getChildMembersAsList
List getChildMembersAsList()
- Returns only the
ContextMembers that have the context
member label (CXL) of "CHD" or child.
- Returns:
ContextMember[] of members with label "CHD"
getAncestorMembers
ContextMember[] getAncestorMembers()
- Returns only the
ContextMembers that have the context
member label (CXL) of "ANC" or self.
- Returns:
ContextMember[] of members with label "ANC"
getAncestorMembersAsList
List getAncestorMembersAsList()
- Returns only the
ContextMembers that have the context
member label (CXL) of "ANC" or self.
- Returns:
ContextMember[] of members with label "ANC"
getSiblingMembers
ContextMember[] getSiblingMembers()
- Returns only the
ContextMembers that have the context
member label (CXL) of "SIB" or self.
- Returns:
ContextMember[] of members with label "SIB"
getSiblingMembersAsList
List getSiblingMembersAsList()
- Returns only the
ContextMembers that have the context
member label (CXL) of "SIB" or self.
- Returns:
ContextMember[] of members with label "SIB"
isTopLevel
boolean isTopLevel()
- Indicates if context is of the top level.
- Returns:
boolean true if top level
false if otherwise
getKeyFields
String getKeyFields()
- Returns a
String key which can be used
by equals, compareTo, and hashCode methods.
- Returns:
- a
String composed from key Context fields
Copyright ©2005