DLESE Tools
v1.6.0

org.dlese.dpc.standards.asn
Class AsnStandard

java.lang.Object
  extended by org.dlese.dpc.standards.asn.AsnStd
      extended by org.dlese.dpc.standards.asn.AsnStandard
Direct Known Subclasses:
AAASBenchmark, AsnMappingStandard, ColoradoBenchmark, RootAsnStandard

public class AsnStandard
extends AsnStd

Extends AsnStd to include hierarchy information, such as "children" and "ancestors"

Author:
Jonathan Ostwald

Field Summary
protected  List ancestors
           
protected  AsnDocument asnDoc
           
protected  List children
           
 
Fields inherited from class org.dlese.dpc.standards.asn.AsnStd
element
 
Constructor Summary
AsnStandard(Element e, AsnDocument asnDoc)
          Constructor for the AsnStandard object given an XML Element and the containing AsnDocument instance;
 
Method Summary
protected  void addChild(AsnStandard std)
          Adds a Child to the AsnStandard object
 List getAncestors()
          Gets the ancestors attribute of the AsnStandard object
 String getAuthor()
          Gets the author attribute of the AsnStandard object
 List getChildren()
          Returns children as AsnStandard instances in same order as the XML Element defining this Standard
 String getDisplayText()
          Walk the ancestor list, adding text from each node
 String getDocumentIdentifier()
          Gets the documentIdentifier attribute of the AsnStandard object
 int getLevel()
          Gets the level attribute of the AsnStandard object
 AsnStandard getParentStandard()
          Gets the parentStandard attribute of the AsnStandard object
protected  AsnStandard getStd(String id)
          Gets the std attribute of the AsnStandard object
 String getTopic()
          Gets the topic attribute of the AsnStandard object
 boolean isLeaf()
          Returns true if the AsnStandard object is a leaf
static String removeEntityRefs(String in)
          Removes entityRefs from the provided string
 String toString()
          NOT YET DOCUMENTED
 
Methods inherited from class org.dlese.dpc.standards.asn.AsnStd
getDescription, getEndGradeLevel, getGradeRange, getId, getItemText, getParentId, getStartGradeLevel, getSubElementResource, getSubElementResource, getSubElementText, getSubElementText, getSubject, setGradeLevels, setItemText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

asnDoc

protected AsnDocument asnDoc

children

protected List children

ancestors

protected List ancestors
Constructor Detail

AsnStandard

public AsnStandard(Element e,
                   AsnDocument asnDoc)
Constructor for the AsnStandard object given an XML Element and the containing AsnDocument instance;

Parameters:
e - the element defining the AsnStandard
asnDoc - the Document containing this standard
Method Detail

getDocumentIdentifier

public String getDocumentIdentifier()
Gets the documentIdentifier attribute of the AsnStandard object

Returns:
The documentIdentifier value

getStd

protected AsnStandard getStd(String id)
Gets the std attribute of the AsnStandard object

Parameters:
id - Description of the Parameter
Returns:
The std value

getAuthor

public String getAuthor()
Gets the author attribute of the AsnStandard object

Returns:
The author value

getTopic

public String getTopic()
Gets the topic attribute of the AsnStandard object

Returns:
The topic value

isLeaf

public boolean isLeaf()
Returns true if the AsnStandard object is a leaf

Returns:
The leaf value

getChildren

public List getChildren()
Returns children as AsnStandard instances in same order as the XML Element defining this Standard

Returns:
The children value

addChild

protected void addChild(AsnStandard std)
Adds a Child to the AsnStandard object

Parameters:
std - The feature to be added to the Child attribute

getParentStandard

public AsnStandard getParentStandard()
Gets the parentStandard attribute of the AsnStandard object

Returns:
The parentStandard value

removeEntityRefs

public static String removeEntityRefs(String in)
Removes entityRefs from the provided string

Parameters:
in - input string
Returns:
string with entity refs removed

getDisplayText

public String getDisplayText()
Walk the ancestor list, adding text from each node

Returns:
The displayText value

getAncestors

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

Returns:
The ancestors value

getLevel

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

Returns:
The level value

toString

public String toString()
NOT YET DOCUMENTED

Overrides:
toString in class AsnStd
Returns:
NOT YET DOCUMENTED

DLESE Tools
v1.6.0