Class OdfContentOrStylesDomBase

All Implemented Interfaces:
Serializable, Cloneable, NamespaceContext, Document, DocumentEvent, EventTarget, Node, NodeList, DocumentRange, DocumentTraversal
Direct Known Subclasses:
OdfContentDom, OdfStylesDom

public class OdfContentOrStylesDomBase extends OdfFileDom
Base class for an XML stream that contains document content, i.e., styles.xml or content.xml.
See Also:
  • Constructor Details

    • OdfContentOrStylesDomBase

      public OdfContentOrStylesDomBase(OdfPackageDocument packageDocument, String packagePath)
    • OdfContentOrStylesDomBase

      public OdfContentOrStylesDomBase(OdfPackage pkg, String packagePath)
  • Method Details

    • getDocument

      public OdfSchemaDocument getDocument()
      Retrieves the ODF Document
      Overrides:
      getDocument in class OdfFileDom
      Returns:
      The OdfDocument
    • 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.
    • getTableRepository

      public IdentityHashMap<TableTableElement,OdfTable> getTableRepository()