DLESE Tools
v1.6.0

org.dlese.dpc.standards.asn
Class AsnStd

java.lang.Object
  extended by org.dlese.dpc.standards.asn.AsnStd
Direct Known Subclasses:
AsnStandard

public class AsnStd
extends Object

Encapsulates basic properties of Asn Standards, such as "educationLevel", "subject", and "description". Does not provide information about the hierarchy of standards.

Used to process both ASN Standards Documents and responses from the ASN URI Resolver service.

Author:
Jonathan Ostwald

Field Summary
 Element element
          NOT YET DOCUMENTED
 
Constructor Summary
AsnStd(Element e)
          Constructor for the AsnStd object
 
Method Summary
 String getDescription()
          Gets the description attribute of the AsnStd object
 int getEndGradeLevel()
          Gets the endGradeLevel attribute of the AsnStd object
 String getGradeRange()
          Gets the gradeRange attribute of the AsnStd object as a String of the form, "<startGradeLevel>-<endGradeLevel>".
 String getId()
          Gets the id attribute of the AsnStd object
 String getItemText()
          Gets the text attribute of the AsnStd object
 String getParentId()
          Gets the parentId attribute of the AsnStd object
 int getStartGradeLevel()
          Gets the startGradeLevel attribute of the AsnStd object
 String getSubElementResource(Element e, String subElementName)
          Gets the value of the resource attribute for the named subelement.
 String getSubElementResource(String subElementName)
          Gets the subElementResource attribute of the AsnStd object
 String getSubElementText(Element e, String subElementName)
          Gets the textual content of the named subelement of provided element.
 String getSubElementText(String subElementName)
          Gets the subElementText attribute of the AsnStd object
 String getSubject()
          Gets the subject attribute of the AsnStd object
protected  void setGradeLevels()
          Sets the gradeLevels attribute of the AsnStd object Grade levels are represented by purls (e.g, http://purl.org/ASN/scheme/ASNEducationLevel/4) from which we pluck the leaf (4 in this case).
 void setItemText(String s)
          Sets the itemText attribute of the AsnStd object
 String toString()
          NOT YET DOCUMENTED
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

element

public Element element
NOT YET DOCUMENTED

Constructor Detail

AsnStd

public AsnStd(Element e)
Constructor for the AsnStd object

Parameters:
e - XML Element representing this node within a Standards Document in XML form
Method Detail

getDescription

public String getDescription()
Gets the description attribute of the AsnStd object

Returns:
The description value

getSubject

public String getSubject()
Gets the subject attribute of the AsnStd object

Returns:
The subject value

setGradeLevels

protected void setGradeLevels()
Sets the gradeLevels attribute of the AsnStd object Grade levels are represented by purls (e.g, http://purl.org/ASN/scheme/ASNEducationLevel/4) from which we pluck the leaf (4 in this case).


getStartGradeLevel

public int getStartGradeLevel()
Gets the startGradeLevel attribute of the AsnStd object

Returns:
The startGradeLevel value

getEndGradeLevel

public int getEndGradeLevel()
Gets the endGradeLevel attribute of the AsnStd object

Returns:
The endGradeLevel value

getId

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

Returns:
The id value

getParentId

public String getParentId()
Gets the parentId attribute of the AsnStd object

Returns:
The parentId value

getItemText

public String getItemText()
Gets the text attribute of the AsnStd object

Returns:
The text value

setItemText

public void setItemText(String s)
Sets the itemText attribute of the AsnStd object

Parameters:
s - The new itemText value

getGradeRange

public String getGradeRange()
Gets the gradeRange attribute of the AsnStd object as a String of the form, "<startGradeLevel>-<endGradeLevel>".

Returns:
The gradeRange value

toString

public String toString()
NOT YET DOCUMENTED

Overrides:
toString in class Object
Returns:
NOT YET DOCUMENTED

getSubElementText

public String getSubElementText(String subElementName)
Gets the subElementText attribute of the AsnStd object

Parameters:
subElementName - NOT YET DOCUMENTED
Returns:
The subElementText value

getSubElementText

public String getSubElementText(Element e,
                                String subElementName)
Gets the textual content of the named subelement of provided element.

Parameters:
e - element containing subelement
subElementName - name of subelement
Returns:
the textual content of named subelement

getSubElementResource

public String getSubElementResource(String subElementName)
Gets the subElementResource attribute of the AsnStd object

Parameters:
subElementName - NOT YET DOCUMENTED
Returns:
The subElementResource value

getSubElementResource

public String getSubElementResource(Element e,
                                    String subElementName)
Gets the value of the resource attribute for the named subelement.

Parameters:
e - element containing subelement
subElementName - name of subelement
Returns:
the value of the "resource" attribute of named subelement

DLESE Tools
v1.6.0