DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.standards.td
Class TeachersDomainStandardsNode

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

public class TeachersDomainStandardsNode
extends Object
implements StandardsNode

Implements the StandardsNode interface using information from a Commcore instance.

Author:
ostwald
See Also:
Standard

Constructor Summary
TeachersDomainStandardsNode(Standard std, TeachersDomainStandardsNode parent)
          Constructor for the TeachersDomainStandardsNode object given a ResultDoc instance
 
Method Summary
 void addSubNode(StandardsNode node)
          Adds a childNodet to the TeachersDomainStandardsNode
 List getAncestors()
          Gets the ancestors attribute of the TeachersDomainStandardsNode object
 TeachersDomainStandardsNode getChild(String id)
          Gets the child attribute of the TeachersDomainStandardsNode object
 String getDefinition()
          Returns null (here only to satisfy the interface)
 String getDocId()
          Gets the docId attribute of the TeachersDomainStandardsNode 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 TeachersDomainStandardsNode object
 boolean getHasSubList()
          Gets the hasSubList attribute of the TeachersDomainStandardsNode object
 String getId()
          Gets the id attribute of the StandardsNode object
 boolean getIsLastInSubList()
          Gets the isLastInSubList attribute of the TeachersDomainStandardsNode object
 boolean getIsLeafNode()
          Gets the isLeafNode attribute of the TeachersDomainStandardsNode 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 TeachersDomainStandardsNode 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
 TeachersDomainStandardsNode getParent()
          Gets the parent attribute of the TeachersDomainStandardsNode object
 List getSubList()
          Gets a list of TeachersDomainStandardsNode 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

TeachersDomainStandardsNode

public TeachersDomainStandardsNode(Standard std,
                                   TeachersDomainStandardsNode parent)
Constructor for the TeachersDomainStandardsNode object given a ResultDoc instance

Parameters:
std - NOT YET DOCUMENTED
parent - Description of the Parameter
Method Detail

getGradeRange

public String getGradeRange()
Gets the gradeRange attribute of the TeachersDomainStandardsNode 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 TeachersDomainStandardsNode object

Returns:
The docId value

getParent

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

Returns:
The parent value

getAncestors

public List getAncestors()
Gets the ancestors attribute of the TeachersDomainStandardsNode 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 TeachersDomainStandardsNode 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 TeachersDomainStandardsNode getChild(String id)
Gets the child attribute of the TeachersDomainStandardsNode 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:
name - asnId
Returns:
The child value

getLevel

public int getLevel()
Gets the level attribute of the TeachersDomainStandardsNode object

Specified by:
getLevel in interface StandardsNode
Returns:
The level value

getSubList

public List getSubList()
Gets a list of TeachersDomainStandardsNode 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 TeachersDomainStandardsNode object

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

getIsLeafNode

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

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

addSubNode

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

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