Package org.dlese.dpc.standards.asn
Class AsnStatement
java.lang.Object
org.dlese.dpc.standards.asn.AsnStatement
- Direct Known Subclasses:
AsnDocStatement
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the childrenIDs attribute of the AsnStatement objectGets the description attribute of the AsnStatement objectorg.dom4j.ElementintGets the endGradeLevel attribute of the AsnStatement objectGets the gradeRange attribute of the AsnStatement object as a String of the form, "<startGradeLevel>-<endGradeLevel>".getId()Gets the id attribute of the AsnStatement objectGets the parentId attribute of the AsnStatement objectintGets the startGradeLevel attribute of the AsnStatement objectgetSubElementResource(String subElementName) Gets the subElementResource attribute of the AsnStatement objectgetSubElementResource(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 objectgetSubElementText(org.dom4j.Element e, String subElementName) Gets the textual content of the named subelement of provided element.Gets the subject attribute of the AsnStatement objectvoidSets the description attribute of the AsnStatement objectprotected voidSets 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).toString()NOT YET DOCUMENTED
-
Field Details
-
element
public org.dom4j.Element elementNOT 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
Gets the childrenIDs attribute of the AsnStatement object- Returns:
- The childrenIDs value
-
getDescription
Gets the description attribute of the AsnStatement object- Returns:
- The description value
-
setDescription
Sets the description attribute of the AsnStatement object- Parameters:
s- The new description value
-
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
Gets the id attribute of the AsnStatement object- Returns:
- The id value
-
getParentId
Gets the parentId attribute of the AsnStatement object- Returns:
- The parentId value
-
getGradeRange
Gets the gradeRange attribute of the AsnStatement object as a String of the form, "<startGradeLevel>-<endGradeLevel>".- Returns:
- The gradeRange value
-
toString
NOT YET DOCUMENTED -
getSubElementText
Gets the subElementText attribute of the AsnStatement object- Parameters:
subElementName- NOT YET DOCUMENTED- Returns:
- The subElementText value
-
getSubElementText
Gets the textual content of the named subelement of provided element.- Parameters:
e- element containing subelementsubElementName- name of subelement- Returns:
- the textual content of named subelement
-
getSubElementResource
Gets the subElementResource attribute of the AsnStatement object- Parameters:
subElementName- NOT YET DOCUMENTED- Returns:
- The subElementResource value
-
getSubElementResource
Gets the value of the resource attribute for the named subelement.- Parameters:
e- element containing subelementsubElementName- name of subelement- Returns:
- the value of the "resource" attribute of named subelement
-