public class Standard extends StdElement
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
ancestors |
protected java.util.List |
children |
protected StdDocument |
stdDoc |
element
Constructor and Description |
---|
Standard(org.dom4j.Element e,
StdDocument stdDoc)
Constructor for the Standard object given an XML Element and the
containing StdDocument instance;
|
Modifier and Type | Method and Description |
---|---|
protected void |
addChild(Standard std)
Adds a Child to the Standard object
|
java.util.List |
getAncestors()
Gets an ordered list of ancestors from root to this standard's parent
|
java.lang.String |
getAuthor()
Gets the author attribute of the Standard object
|
java.util.List |
getChildren()
Returns children as Standard instances in same order as the XML Element
defining this Standard
|
java.lang.String |
getDisplayText()
Walk the ancestor list, adding text from each node
|
java.lang.String |
getDocumentIdentifier()
Gets the documentIdentifier attribute of the Standard object
|
int |
getLevel()
Gets the level attribute of the Standard object
|
Standard |
getParentStandard()
Gets the parentStandard attribute of the Standard object
|
protected Standard |
getStd(java.lang.String id)
Gets the std attribute of the Standard object
|
java.lang.String |
getTopic()
Gets the topic attribute of the Standard object
|
boolean |
isLeaf()
Returns true if the Standard 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
|
getDescription, getEndGradeLevel, getGradeRange, getId, getItemText, getParentId, getStartGradeLevel, getSubElementText, getSubElementText, getSubElementText, getSubElementText, setItemText
protected StdDocument stdDoc
protected java.util.List children
protected java.util.List ancestors
public Standard(org.dom4j.Element e, StdDocument stdDoc)
e
- the element defining the StandardstdDoc
- the Document containing this standardpublic java.lang.String getDocumentIdentifier()
protected Standard 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(Standard std)
std
- The feature to be added to the Child attributepublic Standard 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 StdElement