Class AsnStandardsNode
java.lang.Object
org.dlese.dpc.schemedit.standards.asn.AsnStandardsNode
- All Implemented Interfaces:
StandardsNode
Wraps an AsnStandard object and implements the StandardsNode interface.
- Author:
- ostwald
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAsnStandardsNode(AsnStandard std, AsnStandardsNode parent) Constructor for the AsnStandardsNode object given an AsnStandard instance and the parent Node. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubNode(StandardsNode node) Adds a childNodet to the AsnStandardsNodeGets the ancestors attribute of the AsnStandardsNode objectGets the asnStandard attribute of the AsnStandardsNode objectGets the child attribute of the AsnStandardsNode objectReturns null (here only to satisfy the interface)getDocId()Gets the docId attribute of the AsnStandardsNode objectGets the concatenated text of this standard and its ancestors, prepended with a gradeRange indicatorGets the gradeRange attribute of the AsnStandardsNode objectbooleanGets the hasSubList attribute of the AsnStandardsNode objectgetId()Gets the id attribute of the StandardsNode objectbooleanGets the isLastInSubList attribute of the AsnStandardsNode objectbooleanGets the isLeafNode attribute of the AsnStandardsNode 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 AsnStandardsNode 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 AsnStandardsNode objectGets a list of AsnStandardsNode 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
-
AsnStandardsNode
Constructor for the AsnStandardsNode object given an AsnStandard instance and the parent Node.- Parameters:
std- an asnStandardparent- this node's parent in the standard tree
-
-
Method Details
-
getAsnStandard
Gets the asnStandard attribute of the AsnStandardsNode object- Returns:
- The asnStandard value
-
getGradeRange
Gets the gradeRange attribute of the AsnStandardsNode 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 AsnStandardsNode object- Returns:
- The docId value
-
getParent
Gets the parent attribute of the AsnStandardsNode object- Returns:
- The parent value
-
getAncestors
Gets the ancestors attribute of the AsnStandardsNode 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 AsnStandardsNode 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 AsnStandardsNode 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:
id- NOT YET DOCUMENTED- Returns:
- The child value
-
getLevel
public int getLevel()Gets the level attribute of the AsnStandardsNode object- Specified by:
getLevelin interfaceStandardsNode- Returns:
- The level value
-
getSubList
Gets a list of AsnStandardsNode 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 AsnStandardsNode object- Specified by:
getHasSubListin interfaceStandardsNode- Returns:
- The hasSubList value
-
getIsLeafNode
public boolean getIsLeafNode()Gets the isLeafNode attribute of the AsnStandardsNode object- Specified by:
getIsLeafNodein interfaceStandardsNode- Returns:
- The isLeafNode value
-
addSubNode
Adds a childNodet to the AsnStandardsNode- 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
-