|
||||||||||
| 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
org.activemath.omdocjdom.mbase.MBaseItem
public class MBaseItem
This class extends the MBaseItem class to include methods
and inner-classes to provide support for dependencies.
| Field Summary | |
|---|---|
static String |
CVS_ID
|
| 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 |
MBaseItem()
|
|
MBaseItem(String name)
|
|
MBaseItem(String name,
org.jdom.Namespace namespace)
|
| Method Summary | |
|---|---|
void |
addDependencies(Collection coll)
|
void |
addDependency(Dependency dependency)
|
List |
createDependencies(ElementFromIDTable table,
MBaseBuilder builder)
Creates the dependency elements
and returns them all so that they can be inserted as inversed dependency
in the corresponding object. |
List |
getDependencies()
|
| Methods inherited from class org.activemath.omdocjdom.OJItem |
|---|
getCMPs, getFMPs, getForWhat, getOccurrences |
| 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 |
| Field Detail |
|---|
public static final String CVS_ID
| Constructor Detail |
|---|
protected MBaseItem()
public MBaseItem(String name)
public MBaseItem(String name,
org.jdom.Namespace namespace)
| Method Detail |
|---|
public void addDependency(Dependency dependency)
public void addDependencies(Collection coll)
public List getDependencies()
public List createDependencies(ElementFromIDTable table,
MBaseBuilder builder)
throws NoSuchIDException
dependency elements
and returns them all so that they can be inserted as inversed dependency
in the corresponding object.
These include
for attribute of some items
depends-on tags in metdata/extradataref elements within the CMPs.
OMSPlease make sure to clone these dependencies objects when they are inserted into another document as otherwise one would not find them anymore.
The referencing information (for attribute, <ref> elements)
are all resolved using the heuristical methods #resolveRef and #resolveID.
This has the nice effect of verifying all the reference informations.
This method also applies the necessary corrections to all these referring
elements. So that, if the correction set on the builder is MBaseBuilder.CORRECT_ABSOLUTE,
all for, xref (of ref and OMS)
contains absolute IDs.
NoSuchIDException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||