DLESE Tools
v1.6.0

org.dlese.dpc.standards.asn
Class AsnStatement

java.lang.Object
  extended by org.dlese.dpc.standards.asn.AsnStatement
Direct Known Subclasses:
AsnDocStatement

public class AsnStatement
extends Object

Encapsulates a single statement of an ASN Standards Document or ASN Resolver Response, which are represented as RDF elements, and exposes statement attributes as Strings and Lists. No resolution is performed on attributes that are expressed as ASN purl IDs, e.g., "juristiction" is exposed as "http://purl.org/ASN/scheme/ASNJurisdiction/CO" rather than as "Colorado".

Author:
Jonathan Ostwald

Field Summary
 Element element
          NOT YET DOCUMENTED
 
Constructor Summary
AsnStatement(Element e)
          Constructor for the AsnStatement object
 
Method Summary
 List getChildrenIDs()
          Gets the childrenIDs attribute of the AsnStatement object
 String getDescription()
          Gets the description attribute of the AsnStatement object
 Element getElement()
           
 int getEndGradeLevel()
          Gets the endGradeLevel attribute of the AsnStatement object
 String getGradeRange()
          Gets the gradeRange attribute of the AsnStatement object as a String of the form, "<startGradeLevel>-<endGradeLevel>".
 String getId()
          Gets the id attribute of the AsnStatement object
 String getParentId()
          Gets the parentId attribute of the AsnStatement object
 int getStartGradeLevel()
          Gets the startGradeLevel attribute of the AsnStatement 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 AsnStatement 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 AsnStatement object
 String getSubject()
          Gets the subject attribute of the AsnStatement object
 void setDescription(String s)
          Sets the description attribute of the AsnStatement object
protected  void setGradeLevels()
          Sets the gradeLevels attribute of the AsnStatement 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).
 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

AsnStatement

public AsnStatement(Element e)
Constructor for the AsnStatement object

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

getElement

public Element getElement()

getChildrenIDs

public List getChildrenIDs()
Gets the childrenIDs attribute of the AsnStatement object

Returns:
The childrenIDs value

getDescription

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

Returns:
The description value

setDescription

public void setDescription(String s)
Sets the description attribute of the AsnStatement object

Parameters:
s - The new description value

getSubject

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

Returns:
The subject value

setGradeLevels

protected void setGradeLevels()
Sets the gradeLevels attribute of the AsnStatement 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 AsnStatement object

Returns:
The startGradeLevel value

getEndGradeLevel

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

Returns:
The endGradeLevel value

getId

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

Returns:
The id value

getParentId

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

Returns:
The parentId value

getGradeRange

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