Class OdfManifestDom

All Implemented Interfaces:
Serializable, Cloneable, NamespaceContext, Document, DocumentEvent, EventTarget, Node, NodeList, DocumentRange, DocumentTraversal

public class OdfManifestDom extends OdfFileDom
The DOM representation of the ODF manifest.xml file of an ODF document.
Since:
0.8.9
See Also:
  • Constructor Details

    • OdfManifestDom

      public OdfManifestDom(OdfSchemaDocument odfDocument, String packagePath)
      Creates the DOM representation of an XML file of an Odf document.
      Parameters:
      odfDocument - the document the XML files belongs to
      packagePath - the internal package path to the XML file
    • OdfManifestDom

      public OdfManifestDom(OdfPackage pkg, String packagePath)
      Creates the DOM representation of an XML file of an Odf document.
      Parameters:
      pkg - the package the XML files belongs to
      packagePath - the internal package path to the XML file
  • Method Details

    • initialize

      protected void initialize()
      Might be used to initialize specific XML Namespace prefixes/URIs for this XML file
      Overrides:
      initialize in class OdfFileDom
    • getRootElement

      public ManifestElement getRootElement()
      Description copied from class: OdfFileDom
      Retrieves the ODF root element.
      Overrides:
      getRootElement in class OdfFileDom
      Returns:
      The root element <manifest:manifest > of the manifest.xml file as ManifestElement .
    • getXPath

      public XPath getXPath()
      Creates an JDK XPath instance. Initialized with ODF namespaces from OdfDocumentNamespace. Updated with all namespace of the XML file.
      Overrides:
      getXPath in class OdfFileDom
      Returns:
      an XPath instance with namespace context set to include the standard ODFDOM prefixes.