public class CommCoreStandardsNode extends java.lang.Object implements StandardsNode
Standard
Constructor and Description |
---|
CommCoreStandardsNode(Standard std,
CommCoreStandardsNode parent)
Constructor for the CommCoreStandardsNode object given a ResultDoc instance
|
Modifier and Type | Method and Description |
---|---|
void |
addSubNode(StandardsNode node)
Adds a childNodet to the CommCoreStandardsNode
|
java.util.List |
getAncestors()
Gets the ancestors attribute of the CommCoreStandardsNode object
|
CommCoreStandardsNode |
getChild(java.lang.String id)
Gets the child attribute of the CommCoreStandardsNode object
|
java.lang.String |
getDefinition()
Returns null (here only to satisfy the interface)
|
java.lang.String |
getDocId()
Gets the docId attribute of the CommCoreStandardsNode object
|
java.lang.String |
getFullText()
Gets the concatenated text of this standard and its ancestors, prepended with a gradeRange indicator
|
java.lang.String |
getGradeRange()
Gets the gradeRange attribute of the CommCoreStandardsNode object
|
boolean |
getHasSubList()
Gets the hasSubList attribute of the CommCoreStandardsNode object
|
java.lang.String |
getId()
Gets the id attribute of the StandardsNode object
|
boolean |
getIsLastInSubList()
Gets the isLastInSubList attribute of the CommCoreStandardsNode object
|
boolean |
getIsLeafNode()
Gets the isLeafNode attribute of the CommCoreStandardsNode object
|
java.lang.String |
getItemText()
The text of the standard as defined by ASN source document.
|
java.lang.String |
getLabel()
Gets node's itemText with a gradeRange attached to leaf nodes.
|
int |
getLevel()
Gets the level attribute of the CommCoreStandardsNode object
|
java.util.List |
getLineage()
Gets a list containing the text of this node and it's ancestors
|
boolean |
getNoDisplay()
Gets the noDisplay attribute of the StandardsNode object
|
CommCoreStandardsNode |
getParent()
Gets the parent attribute of the CommCoreStandardsNode object
|
java.util.List |
getSubList()
Gets a list of CommCoreStandardsNode that have this node as a parent.
|
boolean |
getWrap()
Gets the wrap attribute of the StandardsNode object
|
boolean |
hasChild(java.lang.String id)
Gets the specified child of this Node
|
boolean |
isLastInSubList()
Returns true if this StandardsNode is the last of its siblings
|
protected void |
prtln(java.lang.String s)
Description of the Method
|
void |
showLineage()
Description of the Method
|
java.lang.String |
toString()
Description of the Method
|
public CommCoreStandardsNode(Standard std, CommCoreStandardsNode parent)
std
- NOT YET DOCUMENTEDparent
- Description of the Parameterpublic java.lang.String getGradeRange()
getGradeRange
in interface StandardsNode
public java.lang.String getId()
getId
in interface StandardsNode
public java.lang.String getDocId()
public CommCoreStandardsNode getParent()
public java.util.List getAncestors()
getAncestors
in interface StandardsNode
public boolean isLastInSubList()
isLastInSubList
in interface StandardsNode
public boolean getIsLastInSubList()
public boolean getNoDisplay()
getNoDisplay
in interface StandardsNode
public CommCoreStandardsNode getChild(java.lang.String id)
getChild
in interface StandardsNode
id
- asnIdpublic boolean hasChild(java.lang.String id)
name
- asnIdpublic int getLevel()
getLevel
in interface StandardsNode
public java.util.List getSubList()
getSubList
in interface StandardsNode
public boolean getHasSubList()
getHasSubList
in interface StandardsNode
public boolean getIsLeafNode()
getIsLeafNode
in interface StandardsNode
public void addSubNode(StandardsNode node)
addSubNode
in interface StandardsNode
node
- The feature to be added to the SubNode attributepublic java.lang.String getDefinition()
getDefinition
in interface StandardsNode
public boolean getWrap()
getWrap
in interface StandardsNode
public java.lang.String getLabel()
getLabel
in interface StandardsNode
public java.lang.String getItemText()
public java.lang.String getFullText()
getFullText
in interface StandardsNode
public java.util.List getLineage()
public void showLineage()
protected void prtln(java.lang.String s)
s
- Description of the Parameterpublic java.lang.String toString()
toString
in class java.lang.Object