public class AsnStandardsNode extends java.lang.Object implements StandardsNode
AsnStandard
Constructor and Description |
---|
AsnStandardsNode(AsnStandard std,
AsnStandardsNode parent)
Constructor for the AsnStandardsNode object given an AsnStandard instance
and the parent Node.
|
Modifier and Type | Method and Description |
---|---|
void |
addSubNode(StandardsNode node)
Adds a childNodet to the AsnStandardsNode
|
java.util.List |
getAncestors()
Gets the ancestors attribute of the AsnStandardsNode object
|
AsnStandard |
getAsnStandard()
Gets the asnStandard attribute of the AsnStandardsNode object
|
AsnStandardsNode |
getChild(java.lang.String id)
Gets the child attribute of the AsnStandardsNode object
|
java.lang.String |
getDefinition()
Returns null (here only to satisfy the interface)
|
java.lang.String |
getDocId()
Gets the docId attribute of the AsnStandardsNode 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 AsnStandardsNode object
|
boolean |
getHasSubList()
Gets the hasSubList attribute of the AsnStandardsNode object
|
java.lang.String |
getId()
Gets the id attribute of the StandardsNode object
|
boolean |
getIsLastInSubList()
Gets the isLastInSubList attribute of the AsnStandardsNode object
|
boolean |
getIsLeafNode()
Gets the isLeafNode attribute of the AsnStandardsNode 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 AsnStandardsNode 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
|
AsnStandardsNode |
getParent()
Gets the parent attribute of the AsnStandardsNode object
|
java.util.List |
getSubList()
Gets a list of AsnStandardsNode 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 AsnStandardsNode(AsnStandard std, AsnStandardsNode parent)
std
- an asnStandardparent
- this node's parent in the standard treepublic AsnStandard getAsnStandard()
public java.lang.String getGradeRange()
getGradeRange
in interface StandardsNode
public java.lang.String getId()
getId
in interface StandardsNode
public java.lang.String getDocId()
public AsnStandardsNode 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 AsnStandardsNode getChild(java.lang.String id)
getChild
in interface StandardsNode
id
- asnIdpublic boolean hasChild(java.lang.String id)
id
- NOT YET DOCUMENTEDpublic 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