DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.standards.asn
Class AsnStandardsNode

java.lang.Object
  extended by org.dlese.dpc.schemedit.standards.asn.AsnStandardsNode
All Implemented Interfaces:
StandardsNode

public class AsnStandardsNode
extends Object
implements StandardsNode

Wraps an AsnStandard object and implements the StandardsNode interface.

Author:
ostwald
See Also:
AsnStandard

Constructor Summary
AsnStandardsNode(AsnStandard std, AsnStandardsNode parent)
          Constructor for the AsnStandardsNode object given an AsnStandard instance and the parent Node.
 
Method Summary
 void addSubNode(StandardsNode node)
          Adds a childNodet to the AsnStandardsNode
 List getAncestors()
          Gets the ancestors attribute of the AsnStandardsNode object
 AsnStandard getAsnStandard()
          Gets the asnStandard attribute of the AsnStandardsNode object
 AsnStandardsNode getChild(String id)
          Gets the child attribute of the AsnStandardsNode object
 String getDefinition()
          Returns null (here only to satisfy the interface)
 String getDocId()
          Gets the docId attribute of the AsnStandardsNode object
 String getFullText()
          Gets the concatenated text of this standard and its ancestors, prepended with a gradeRange indicator
 String getGradeRange()
          Gets the gradeRange attribute of the AsnStandardsNode object
 boolean getHasSubList()
          Gets the hasSubList attribute of the AsnStandardsNode object
 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
 String getItemText()
          The text of the standard as defined by ASN source document.
 String getLabel()
          Gets node's itemText with a gradeRange attached to leaf nodes.
 int getLevel()
          Gets the level attribute of the AsnStandardsNode object
 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
 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(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(String s)
          Description of the Method
 void showLineage()
          Description of the Method
 String toString()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsnStandardsNode

public AsnStandardsNode(AsnStandard std,
                        AsnStandardsNode parent)
Constructor for the AsnStandardsNode object given an AsnStandard instance and the parent Node.

Parameters:
std - an asnStandard
parent - this node's parent in the standard tree
Method Detail

getAsnStandard

public AsnStandard getAsnStandard()
Gets the asnStandard attribute of the AsnStandardsNode object

Returns:
The asnStandard value

getGradeRange

public String getGradeRange()
Gets the gradeRange attribute of the AsnStandardsNode object

Specified by:
getGradeRange in interface StandardsNode
Returns:
The gradeRange value

getId

public String getId()
Gets the id attribute of the StandardsNode object

Specified by:
getId in interface StandardsNode
Returns:
The id value

getDocId

public String getDocId()
Gets the docId attribute of the AsnStandardsNode object

Returns:
The docId value

getParent

public AsnStandardsNode getParent()
Gets the parent attribute of the AsnStandardsNode object

Returns:
The parent value

getAncestors

public List getAncestors()
Gets the ancestors attribute of the AsnStandardsNode object

Specified by:
getAncestors in interface StandardsNode
Returns:
The ancestors value

isLastInSubList

public boolean isLastInSubList()
Returns true if this StandardsNode is the last of its siblings

Specified by:
isLastInSubList in interface StandardsNode
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:
getNoDisplay in interface StandardsNode
Returns:
The noDisplay value

getChild

public AsnStandardsNode getChild(String id)
Gets the child attribute of the AsnStandardsNode object

Specified by:
getChild in interface StandardsNode
Parameters:
id - asnId
Returns:
The child Node (or null if there is no child with specified id)

hasChild

public boolean hasChild(String id)
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:
getLevel in interface StandardsNode
Returns:
The level value

getSubList

public List getSubList()
Gets a list of AsnStandardsNode that have this node as a parent.

Specified by:
getSubList in interface StandardsNode
Returns:
The subList value

getHasSubList

public boolean getHasSubList()
Gets the hasSubList attribute of the AsnStandardsNode object

Specified by:
getHasSubList in interface StandardsNode
Returns:
The hasSubList value

getIsLeafNode

public boolean getIsLeafNode()
Gets the isLeafNode attribute of the AsnStandardsNode object

Specified by:
getIsLeafNode in interface StandardsNode
Returns:
The isLeafNode value

addSubNode

public void addSubNode(StandardsNode node)
Adds a childNodet to the AsnStandardsNode

Specified by:
addSubNode in interface StandardsNode
Parameters:
node - The feature to be added to the SubNode attribute

getDefinition

public String getDefinition()
Returns null (here only to satisfy the interface)

Specified by:
getDefinition in interface StandardsNode
Returns:
The definition value

getWrap

public boolean getWrap()
Gets the wrap attribute of the StandardsNode object

Specified by:
getWrap in interface StandardsNode
Returns:
The wrap value

getLabel

public String getLabel()
Gets node's itemText with a gradeRange attached to leaf nodes.

Specified by:
getLabel in interface StandardsNode
Returns:
The label value

getItemText

public String getItemText()
The text of the standard as defined by ASN source document.

Returns:
The itemText value

getFullText

public String getFullText()
Gets the concatenated text of this standard and its ancestors, prepended with a gradeRange indicator

Specified by:
getFullText in interface StandardsNode
Returns:
The fullText value

getLineage

public List 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

protected void prtln(String s)
Description of the Method

Parameters:
s - Description of the Parameter

toString

public String toString()
Description of the Method

Overrides:
toString in class Object
Returns:
Description of the Return Value

DLESE Tools
v1.6.0