|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdom.Content
org.jdom.Element
org.activemath.omdocjdom.OJElement
org.activemath.omdocjdom.OJItem
public class OJItem
This class implements a default behaviour for an OJItem
which supposes a complete OMdoc is loaded as parent of the item.
An item, in ActiveMath parlance is one of the elementary pieces
of content-reordering for presentation planning: these are definitions,
symbol, axioms, assertions, omtexts, exercises, examples. Their list
is described in the OJConstants.ITEM_NAMES constant.
As with any subclass of Element, we have to provide
all five constructors though most would be useless.
This class should particularly support accessing ActiveMath related values as well as metadata values. A first attempt is made here, more is to come.
| Field Summary |
|---|
| Fields inherited from class org.activemath.omdocjdom.OJElement |
|---|
DEBUG, id, info, log |
| Fields inherited from class org.jdom.Element |
|---|
additionalNamespaces, name, namespace |
| Fields inherited from class org.jdom.Content |
|---|
parent |
| Constructor Summary | |
|---|---|
protected |
OJItem()
|
|
OJItem(String name)
|
|
OJItem(String name,
org.jdom.Namespace namespace)
|
| Method Summary | |
|---|---|
List |
getCMPs(String preferredLanguage)
Returns the list of all the CMPs that have the given language, if they exist. |
List |
getFMPs()
Returns the list of FMPs children. |
String |
getForWhat()
Returns the attribute for contained in the element. |
List |
getOccurrences()
Returns the list of all the OMS and ref descendant of this element. |
| Methods inherited from class org.jdom.Element |
|---|
addContent, addContent, addContent, addContent, addContent, addNamespaceDeclaration, clone, cloneContent, getAdditionalNamespaces, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValue, getChild, getChild, getChildren, getChildren, getChildren, getChildText, getChildText, getChildTextNormalize, getChildTextNormalize, getChildTextTrim, getChildTextTrim, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getName, getNamespace, getNamespace, getNamespacePrefix, getNamespaceURI, getQualifiedName, getText, getTextNormalize, getTextTrim, getValue, indexOf, isAncestor, isRootElement, removeAttribute, removeAttribute, removeAttribute, removeChild, removeChild, removeChildren, removeChildren, removeContent, removeContent, removeContent, removeContent, removeNamespaceDeclaration, setAttribute, setAttribute, setAttribute, setAttributes, setAttributes, setContent, setContent, setContent, setContent, setName, setText |
| Methods inherited from class org.jdom.Content |
|---|
detach, equals, getDocument, getParent, getParentElement, hashCode, setParent |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.activemath.omdocjdom.OJNode |
|---|
getDocument, getParent |
| Methods inherited from interface org.jdom.Parent |
|---|
getDocument, getParent |
| Constructor Detail |
|---|
protected OJItem()
public OJItem(String name)
public OJItem(String name,
org.jdom.Namespace namespace)
| Method Detail |
|---|
public List getOccurrences()
OMS and ref descendant of this element.
public String getForWhat()
for contained in the element.
The specifications might change making this request to perform another lookup.
public List getCMPs(String preferredLanguage)
public List getFMPs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||