org.activemath.omdocjdom.mbase
Class MBaseItem

java.lang.Object
  extended by org.jdom.Content
      extended by org.jdom.Element
          extended by org.activemath.omdocjdom.OJElement
              extended by org.activemath.omdocjdom.OJItem
                  extended by org.activemath.omdocjdom.mbase.MBaseItem
All Implemented Interfaces:
Serializable, Cloneable, Infoable, OJNode, org.jdom.Parent

public class MBaseItem
extends OJItem

This class extends the MBaseItem class to include methods and inner-classes to provide support for dependencies.

Version:
See Also:
Serialized Form

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.activemath.omdocjdom.OJElement
addContentMaybeCloning, addContentMaybeCloning, addContentMaybeCloning, addContentMaybeCloning, addContentMaybeCloning, addDCmetadata, addProperlyIndented, addProperlyIndented, clearExtraNamespaces, findChildWithID, getAnyTitle, getAnyTitle, getChildrenRefs, getCompleteDCMetadata, getContainingItem, getContainingTheory, getContainingTheoryIDstring, getCreator, getEnclosingID, getFirstDCMetadata, getID, getIndentOfElementWithNL, getInfo, getLanguage, getNL, getOrMakeMetadata, getorMakeMetadataExtradata, getParentOJElement, getRealContent, getTitle, getTitleMap, getTitleMapAsJdomElts, getTitleMapAsJdomNodeList, getTitleMapAsXmlString, getUnionOfDCMetadataEntries, listItems, setID, setID, setInfo, setNamespace, toString
 
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

CVS_ID

public static final String CVS_ID
See Also:
Constant Field Values
Constructor Detail

MBaseItem

protected MBaseItem()

MBaseItem

public MBaseItem(String name)

MBaseItem

public MBaseItem(String name,
                 org.jdom.Namespace namespace)
Method Detail

addDependency

public void addDependency(Dependency dependency)

addDependencies

public void addDependencies(Collection coll)

getDependencies

public List getDependencies()

createDependencies

public List createDependencies(ElementFromIDTable table,
                               MBaseBuilder builder)
                        throws NoSuchIDException
Creates the dependency elements and returns them all so that they can be inserted as inversed dependency in the corresponding object.

These include

Please 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.

Throws:
NoSuchIDException