Class OdfSettingsDom

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

public class OdfSettingsDom extends OdfFileDom
The DOM representation of the ODF Settings.xml file of an ODF document.
See Also:
  • Constructor Details

    • OdfSettingsDom

      public OdfSettingsDom(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
  • 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
    • getDocument

      public OdfSchemaDocument getDocument()
      Retrieves the Odf Document
      Overrides:
      getDocument in class OdfFileDom
      Returns:
      The OdfDocument
    • getRootElement

      public OfficeDocumentSettingsElement getRootElement()
      Description copied from class: OdfFileDom
      Retrieves the ODF root element.
      Overrides:
      getRootElement in class OdfFileDom
      Returns:
      The root element <office:document-settings> of the settings.xml file as OfficeDocumentSettingsElement.
    • 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.