|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.CoreDocumentImpl
org.apache.xerces.dom.DocumentImpl
org.odftoolkit.odfdom.pkg.OdfFileDom
org.odftoolkit.odfdom.dom.OdfContentDom
public class OdfContentDom
The DOM repesentation of the ODF content.xml file of an ODF document.
Field Summary |
---|
Fields inherited from class org.odftoolkit.odfdom.pkg.OdfFileDom |
---|
inCententMetadataCache, mDuplicatePrefixesByUri, mPackage, mPackageDocument, mPackagePath, mPrefixByUri, mUriByPrefix, mXPath, sink |
Fields inherited from class org.apache.xerces.dom.DocumentImpl |
---|
eventListeners, iterators, mutationEvents, ranges |
Fields inherited from class org.apache.xerces.dom.CoreDocumentImpl |
---|
actualEncoding, allowGrammarAccess, changes, docElement, docType, encoding, errorChecking, fDocumentURI, identifiers, standalone, userData, version, xmlVersionChanged |
Fields inherited from class org.apache.xerces.dom.ParentNode |
---|
firstChild, fNodeListCache, ownerDocument |
Fields inherited from class org.apache.xerces.dom.ChildNode |
---|
nextSibling, previousSibling |
Constructor Summary | |
---|---|
OdfContentDom(OdfSchemaDocument odfDocument,
String packagePath)
Creates the DOM representation of an XML file of an Odf document. |
Method Summary | |
---|---|
OdfOfficeAutomaticStyles |
getAutomaticStyles()
Retrieve the ODF AutomaticStyles |
OdfSchemaDocument |
getDocument()
Retrieves the Odf Document |
OdfOfficeAutomaticStyles |
getOrCreateAutomaticStyles()
|
OfficeDocumentContentElement |
getRootElement()
Retrieves the ODF root element. |
XPath |
getXPath()
Creates an JDK XPath instance. |
protected void |
initialize()
Might be used to initialize specific XML Namespace prefixes/URIs for this XML file |
Methods inherited from class org.odftoolkit.odfdom.pkg.OdfFileDom |
---|
createAttribute, createAttributeNS, createAttributeNS, createElement, createElementNS, createElementNS, getBookmarkRDFMetadata, getInContentMetadataCache, getNamespaceURI, getPackagePath, getPrefix, getPrefixes, getSink, newFileDom, newFileDom, newOdfElement, setNamespace, setNamespace, toString, updateInContentMetadataCache |
Methods inherited from class org.apache.xerces.dom.DocumentImpl |
---|
addEventListener, cloneNode, copyEventListeners, createEvent, createNodeIterator, createNodeIterator, createRange, createTreeWalker, createTreeWalker, dispatchAggregateEvents, dispatchAggregateEvents, dispatchEvent, dispatchEventToSubtree, dispatchingEventToSubtree, getEventListeners, getImplementation, removeEventListener, saveEnclosingAttr, setEventListeners |
Methods inherited from class org.apache.xerces.dom.ParentNode |
---|
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, hasChildNodes, isEqualNode, item, normalize, setOwnerDocument, setReadOnly, synchronizeChildren |
Methods inherited from class org.apache.xerces.dom.ChildNode |
---|
getNextSibling, getParentNode, getPreviousSibling |
Methods inherited from class org.apache.xerces.dom.NodeImpl |
---|
addEventListener, appendChild, compareDocumentPosition, compareTreePosition, dispatchEvent, getAttributes, getContainer, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getUserData, getUserData, getUserDataRecord, hasAttributes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setPrefix, setUserData, setUserData, synchronizeData |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
---|
appendChild, compareDocumentPosition, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, setNodeValue, setPrefix, setUserData |
Constructor Detail |
---|
public OdfContentDom(OdfSchemaDocument odfDocument, String packagePath)
odfDocument
- the document the XML files belongs topackagePath
- the internal package path to the XML fileMethod Detail |
---|
protected void initialize()
initialize
in class OdfFileDom
public OdfSchemaDocument getDocument()
getDocument
in class OdfFileDom
OdfDocument
public OfficeDocumentContentElement getRootElement()
OdfFileDom
getRootElement
in class OdfFileDom
OfficeDocumentContentElement
.public XPath getXPath()
XPath
instance.
Initialized with ODF namespaces from OdfDocumentNamespace
. Updated with all namespace of the XML file.
getXPath
in class OdfFileDom
public OdfOfficeAutomaticStyles getAutomaticStyles()
getOrCreateAutomaticStyles()
public OdfOfficeAutomaticStyles getOrCreateAutomaticStyles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |