Class OdfManifestDom

    • Constructor Detail

      • 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 Detail

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