Class CommCoreStandardsNode
java.lang.Object
org.dlese.dpc.schemedit.standards.commcore.CommCoreStandardsNode
- All Implemented Interfaces:
StandardsNode
Implements the StandardsNode interface using information from a Commcore
instance.
- Author:
- ostwald
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCommCoreStandardsNode(Standard std, CommCoreStandardsNode parent) Constructor for the CommCoreStandardsNode object given a ResultDoc instance -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubNode(StandardsNode node) Adds a childNodet to the CommCoreStandardsNodeGets the ancestors attribute of the CommCoreStandardsNode objectGets the child attribute of the CommCoreStandardsNode objectReturns null (here only to satisfy the interface)getDocId()Gets the docId attribute of the CommCoreStandardsNode objectGets the concatenated text of this standard and its ancestors, prepended with a gradeRange indicatorGets the gradeRange attribute of the CommCoreStandardsNode objectbooleanGets the hasSubList attribute of the CommCoreStandardsNode objectgetId()Gets the id attribute of the StandardsNode objectbooleanGets the isLastInSubList attribute of the CommCoreStandardsNode objectbooleanGets the isLeafNode attribute of the CommCoreStandardsNode objectThe text of the standard as defined by ASN source document.getLabel()Gets node's itemText with a gradeRange attached to leaf nodes.intgetLevel()Gets the level attribute of the CommCoreStandardsNode objectGets a list containing the text of this node and it's ancestorsbooleanGets the noDisplay attribute of the StandardsNode objectGets the parent attribute of the CommCoreStandardsNode objectGets a list of CommCoreStandardsNode that have this node as a parent.booleangetWrap()Gets the wrap attribute of the StandardsNode objectbooleanGets the specified child of this NodebooleanReturns true if this StandardsNode is the last of its siblingsprotected voidDescription of the MethodvoidDescription of the MethodtoString()Description of the Method
-
Constructor Details
-
CommCoreStandardsNode
Constructor for the CommCoreStandardsNode object given a ResultDoc instance- Parameters:
std- NOT YET DOCUMENTEDparent- Description of the Parameter
-
-
Method Details
-
getGradeRange
Gets the gradeRange attribute of the CommCoreStandardsNode object- Specified by:
getGradeRangein interfaceStandardsNode- Returns:
- The gradeRange value
-
getId
Gets the id attribute of the StandardsNode object- Specified by:
getIdin interfaceStandardsNode- Returns:
- The id value
-
getDocId
Gets the docId attribute of the CommCoreStandardsNode object- Returns:
- The docId value
-
getParent
Gets the parent attribute of the CommCoreStandardsNode object- Returns:
- The parent value
-
getAncestors
Gets the ancestors attribute of the CommCoreStandardsNode object- Specified by:
getAncestorsin interfaceStandardsNode- Returns:
- The ancestors value
-
isLastInSubList
public boolean isLastInSubList()Returns true if this StandardsNode is the last of its siblings- Specified by:
isLastInSubListin interfaceStandardsNode- Returns:
- The isLastInSubList value
-
getIsLastInSubList
public boolean getIsLastInSubList()Gets the isLastInSubList attribute of the CommCoreStandardsNode object- Returns:
- The isLastInSubList value
-
getNoDisplay
public boolean getNoDisplay()Gets the noDisplay attribute of the StandardsNode object- Specified by:
getNoDisplayin interfaceStandardsNode- Returns:
- The noDisplay value
-
getChild
Gets the child attribute of the CommCoreStandardsNode object- Specified by:
getChildin interfaceStandardsNode- Parameters:
id- asnId- Returns:
- The child Node (or null if there is no child with specified id)
-
hasChild
Gets the specified child of this Node- Parameters:
name- asnId- Returns:
- The child value
-
getLevel
public int getLevel()Gets the level attribute of the CommCoreStandardsNode object- Specified by:
getLevelin interfaceStandardsNode- Returns:
- The level value
-
getSubList
Gets a list of CommCoreStandardsNode that have this node as a parent.- Specified by:
getSubListin interfaceStandardsNode- Returns:
- The subList value
-
getHasSubList
public boolean getHasSubList()Gets the hasSubList attribute of the CommCoreStandardsNode object- Specified by:
getHasSubListin interfaceStandardsNode- Returns:
- The hasSubList value
-
getIsLeafNode
public boolean getIsLeafNode()Gets the isLeafNode attribute of the CommCoreStandardsNode object- Specified by:
getIsLeafNodein interfaceStandardsNode- Returns:
- The isLeafNode value
-
addSubNode
Adds a childNodet to the CommCoreStandardsNode- Specified by:
addSubNodein interfaceStandardsNode- Parameters:
node- The feature to be added to the SubNode attribute
-
getDefinition
Returns null (here only to satisfy the interface)- Specified by:
getDefinitionin interfaceStandardsNode- Returns:
- The definition value
-
getWrap
public boolean getWrap()Gets the wrap attribute of the StandardsNode object- Specified by:
getWrapin interfaceStandardsNode- Returns:
- The wrap value
-
getLabel
Gets node's itemText with a gradeRange attached to leaf nodes.- Specified by:
getLabelin interfaceStandardsNode- Returns:
- The label value
-
getItemText
The text of the standard as defined by ASN source document.- Returns:
- The itemText value
-
getFullText
Gets the concatenated text of this standard and its ancestors, prepended with a gradeRange indicator- Specified by:
getFullTextin interfaceStandardsNode- Returns:
- The fullText value
-
getLineage
Gets a list containing the text of this node and it's ancestors- Returns:
- The lineage value
-
showLineage
public void showLineage()Description of the Method -
prtln
Description of the Method- Parameters:
s- Description of the Parameter
-
toString
Description of the Method
-