public class AsnStandard
extends java.lang.Object
AsnStatement
to expose object based hierarchy information,
such as "children" and "ancestors" as AsnStandards rather than ASN IDs, and
to expose resolved ASN purl-based Attributes as human-readable strings, such as
"Science" rather than "http://purl.org/ASN/scheme/ASNTopic/science".Modifier and Type | Field and Description |
---|---|
protected java.util.List |
ancestors |
protected AsnDocument |
asnDoc |
protected java.util.List |
children |
Constructor and Description |
---|
AsnStandard(AsnStatement asnStmnt,
AsnDocument asnDoc)
Constructor for the AsnStandard object given an XML Element and the
containing AsnDocument instance;
|
Modifier and Type | Method and Description |
---|---|
protected void |
addChild(AsnStandard std)
Adds a Child to the AsnStandard object
|
java.util.List |
getAncestors()
Gets the ancestors attribute of the AsnStandard object
|
AsnStatement |
getAsnStatement() |
java.lang.String |
getAuthor()
Gets the author attribute of the AsnStandard object
|
java.util.List |
getChildren()
Returns children as AsnStandard instances in same order as the XML Element
defining this Standard
|
java.lang.String |
getDescription() |
java.lang.String |
getDisplayText()
Walk the ancestor list, adding text from each node
|
java.lang.String |
getDocumentIdentifier()
Gets the documentIdentifier attribute of the AsnStandard object
|
int |
getEndGradeLevel()
Gets the endGradeLevel attribute of the AsnStandard object
|
java.lang.String |
getGradeRange() |
java.lang.String |
getId() |
int |
getLevel()
Gets the level attribute of the AsnStandard object
|
java.lang.String |
getParentId() |
AsnStandard |
getParentStandard()
Gets the parentStandard attribute of the AsnStandard object
|
int |
getStartGradeLevel()
Gets the startGradeLevel attribute of the AsnStandard object
|
protected AsnStandard |
getStd(java.lang.String id)
Gets the std attribute of the AsnStandard object
|
AsnDocument |
getStdDocument() |
java.lang.String |
getTopic()
Gets the topic attribute of the AsnStandard object
|
boolean |
isLeaf()
Returns true if the AsnStandard object is a leaf
|
static java.lang.String |
removeEntityRefs(java.lang.String in)
Removes entityRefs from the provided string
|
java.lang.String |
toString()
NOT YET DOCUMENTED
|
protected AsnDocument asnDoc
protected java.util.List children
protected java.util.List ancestors
public AsnStandard(AsnStatement asnStmnt, AsnDocument asnDoc)
e
- the element defining the AsnStandardasnDoc
- the Document containing this standardpublic AsnDocument getStdDocument()
public AsnStatement getAsnStatement()
public java.lang.String getDescription()
public java.lang.String getId()
public java.lang.String getGradeRange()
public java.lang.String getDocumentIdentifier()
protected AsnStandard getStd(java.lang.String id)
id
- Description of the Parameterpublic java.lang.String getAuthor()
public java.lang.String getTopic()
public boolean isLeaf()
public java.util.List getChildren()
protected void addChild(AsnStandard std)
std
- The feature to be added to the Child attributepublic int getStartGradeLevel()
public int getEndGradeLevel()
public java.lang.String getParentId()
public AsnStandard getParentStandard()
public static java.lang.String removeEntityRefs(java.lang.String in)
in
- input stringpublic java.lang.String getDisplayText()
public java.util.List getAncestors()
public int getLevel()
public java.lang.String toString()
toString
in class java.lang.Object