Class AsnStatement

java.lang.Object
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

    Fields
    Modifier and Type
    Field
    Description
    org.dom4j.Element
    NOT YET DOCUMENTED
  • Constructor Summary

    Constructors
    Constructor
    Description
    AsnStatement(org.dom4j.Element e)
    Constructor for the AsnStatement object
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the childrenIDs attribute of the AsnStatement object
    Gets the description attribute of the AsnStatement object
    org.dom4j.Element
     
    int
    Gets the endGradeLevel attribute of the AsnStatement object
    Gets the gradeRange attribute of the AsnStatement object as a String of the form, "<startGradeLevel>-<endGradeLevel>".
    Gets the id attribute of the AsnStatement object
    Gets the parentId attribute of the AsnStatement object
    int
    Gets the startGradeLevel attribute of the AsnStatement object
    getSubElementResource(String subElementName)
    Gets the subElementResource attribute of the AsnStatement object
    getSubElementResource(org.dom4j.Element e, String subElementName)
    Gets the value of the resource attribute for the named subelement.
    getSubElementText(String subElementName)
    Gets the subElementText attribute of the AsnStatement object
    getSubElementText(org.dom4j.Element e, String subElementName)
    Gets the textual content of the named subelement of provided element.
    Gets the subject attribute of the AsnStatement object
    void
    Sets the description attribute of the AsnStatement object
    protected void
    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).
    NOT YET DOCUMENTED

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • element

      public org.dom4j.Element element
      NOT YET DOCUMENTED
  • Constructor Details

    • AsnStatement

      public AsnStatement(org.dom4j.Element e)
      Constructor for the AsnStatement object
      Parameters:
      e - XML Element representing this node within a Standards Document in XML form
  • Method Details

    • getElement

      public org.dom4j.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(org.dom4j.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(org.dom4j.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