|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.standards.asn.AsnStandard
public class AsnStandard
Wraps 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".
Field Summary | |
---|---|
protected List |
ancestors
|
protected AsnDocument |
asnDoc
|
protected List |
children
|
Constructor Summary | |
---|---|
AsnStandard(AsnStatement asnStmnt,
AsnDocument asnDoc)
Constructor for the AsnStandard object given an XML Element and the containing AsnDocument instance; |
Method Summary | |
---|---|
protected void |
addChild(AsnStandard std)
Adds a Child to the AsnStandard object |
List |
getAncestors()
Gets the ancestors attribute of the AsnStandard object |
AsnStatement |
getAsnStatement()
|
String |
getAuthor()
Gets the author attribute of the AsnStandard object |
List |
getChildren()
Returns children as AsnStandard instances in same order as the XML Element defining this Standard |
String |
getDescription()
|
String |
getDisplayText()
Walk the ancestor list, adding text from each node |
String |
getDocumentIdentifier()
Gets the documentIdentifier attribute of the AsnStandard object |
int |
getEndGradeLevel()
Gets the endGradeLevel attribute of the AsnStandard object |
String |
getGradeRange()
|
String |
getId()
|
int |
getLevel()
Gets the level attribute of the AsnStandard object |
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(String id)
Gets the std attribute of the AsnStandard object |
AsnDocument |
getStdDocument()
|
String |
getTopic()
Gets the topic attribute of the AsnStandard object |
boolean |
isLeaf()
Returns true if the AsnStandard object is a leaf |
static String |
removeEntityRefs(String in)
Removes entityRefs from the provided string |
String |
toString()
NOT YET DOCUMENTED |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AsnDocument asnDoc
protected List children
protected List ancestors
Constructor Detail |
---|
public AsnStandard(AsnStatement asnStmnt, AsnDocument asnDoc)
e
- the element defining the AsnStandardasnDoc
- the Document containing this standardMethod Detail |
---|
public AsnDocument getStdDocument()
public AsnStatement getAsnStatement()
public String getDescription()
public String getId()
public String getGradeRange()
public String getDocumentIdentifier()
protected AsnStandard getStd(String id)
id
- Description of the Parameter
public String getAuthor()
public String getTopic()
public boolean isLeaf()
public List getChildren()
protected void addChild(AsnStandard std)
std
- The feature to be added to the Child attributepublic int getStartGradeLevel()
public int getEndGradeLevel()
public String getParentId()
public AsnStandard getParentStandard()
public static String removeEntityRefs(String in)
in
- input string
public String getDisplayText()
public List getAncestors()
public int getLevel()
public String toString()
toString
in class Object
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |