public abstract class OdfSchemaDocument extends OdfPackageDocument
| Modifier and Type | Class and Description |
|---|---|
static class |
OdfSchemaDocument.OdfXMLFile
This enum contains all possible standardized XML ODF files of the OpenDocument document.
|
OdfPackageDocument.Resource| Modifier and Type | Field and Description |
|---|---|
protected OdfContentDom |
mContentDom |
protected OdfOfficeStyles |
mDocumentStyles |
protected OdfMetaDom |
mMetaDom |
protected OdfSettingsDom |
mSettingsDom |
protected OdfStylesDom |
mStylesDom |
mDocumentMediaType, mDocumentPathInPackage, mPackage, ROOT_DOCUMENT_PATH| Modifier | Constructor and Description |
|---|---|
protected |
OdfSchemaDocument(OdfPackage pkg,
String internalPath,
String mediaTypeString)
Creates a new OdfSchemaDocument.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the OdfPackage and release all temporary created data.
|
String |
getBaseURI()
Get the URI, where this ODF document is stored.
|
org.apache.jena.rdf.model.Model |
getBookmarkRDFMetadata()
Get in-content metadata model of bookmarks
|
OdfContentDom |
getContentDom()
Return the ODF type-based content DOM of the content.xml
|
InputStream |
getContentStream()
Gets the ODF content.xml file as stream.
|
OdfOfficeStyles |
getDocumentStyles() |
OdfFileDom |
getFileDom(OdfSchemaDocument.OdfXMLFile file) |
org.apache.jena.rdf.model.Model |
getInContentMetadata()
Get In Content RDF Metadata through GRDDL XSLT
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1415070_253892949
|
org.apache.jena.rdf.model.Model |
getInContentMetadataFromCache()
Get in-content metadata cache model
|
org.apache.jena.rdf.model.Model |
getManifestRDFMetadata()
Get RDF metadata from manifest.rdf and those rdf files registered in the
manifest.xml as "application/rdf+xml" through GRDDL XSLT
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1415072_253892949
|
Map<String,StyleMasterPageElement> |
getMasterPages()
Deprecated.
This method will be moved to the generated sources as soon
code generation was improved!
|
OdfMetaDom |
getMetaDom()
Return the ODF type-based metadata DOM of the meta.xml
|
InputStream |
getMetaStream()
Gets the ODF metadata.xml file as stream.
|
OdfOfficeMasterStyles |
getOfficeMasterStyles()
return the office:master-styles element of this document.
|
OdfOfficeStyles |
getOrCreateDocumentStyles() |
org.apache.jena.rdf.model.Model |
getRDFMetadata()
Get all two types of RDF Metadata through GRDDL XSLT:
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1415068_253892949
|
OdfSettingsDom |
getSettingsDom()
Return the ODF type-based settings DOM of the settings.xml
|
InputStream |
getSettingsStream()
Gets the ODF settings.xml file as stream.
|
OdfStylesDom |
getStylesDom()
Return the ODF type-based styles DOM of the styles.xml
|
InputStream |
getStylesStream()
Gets the ODF style.xml file as stream.
|
List<TableTableElement> |
getTables()
Return a list of table features in this document.
|
protected String |
getXMLFilePath(OdfSchemaDocument.OdfXMLFile file)
Get the relative path for an embedded ODF document including its file name.
|
flushDoms, getDocumentPath, getFileDom, getMediaTypeString, getPackage, getXMLFileMetadata, insertDocument, isExternalReference, isRootDocument, loadDocument, loadSubDocument, normalizeDocumentPath, removeDocument, save, save, setMediaTypeStringprotected OdfContentDom mContentDom
protected OdfStylesDom mStylesDom
protected OdfMetaDom mMetaDom
protected OdfSettingsDom mSettingsDom
protected OdfOfficeStyles mDocumentStyles
protected OdfSchemaDocument(OdfPackage pkg, String internalPath, String mediaTypeString)
pkg - - the ODF Package that contains the document. A baseURL is being generated based on its location.internalPath - - the directory path within the package from where the document should be loaded.mediaTypeString - - media type of stream. If unknown null can be used.public InputStream getContentStream() throws Exception
Exception - - if the stream can not be extractedpublic InputStream getStylesStream() throws Exception
Exception - - if the stream can not be extractedpublic InputStream getSettingsStream() throws Exception
Exception - - if the stream can not be extractedpublic InputStream getMetaStream() throws Exception
Exception - - if the stream can not be extractedprotected String getXMLFilePath(OdfSchemaDocument.OdfXMLFile file)
file - represents one of the standardized XML ODF files.public String getBaseURI()
public OdfContentDom getContentDom() throws Exception
Exception - if content DOM could not be initializedpublic OdfStylesDom getStylesDom() throws Exception
Exception - if styles DOM could not be initializedpublic OdfMetaDom getMetaDom() throws Exception
Exception - if meta DOM could not be initializedpublic OdfSettingsDom getSettingsDom() throws Exception
Exception - if settings DOM could not be initializedpublic OdfOfficeStyles getDocumentStyles()
public OdfOfficeMasterStyles getOfficeMasterStyles()
public OdfOfficeStyles getOrCreateDocumentStyles()
public List<TableTableElement> getTables()
public Map<String,StyleMasterPageElement> getMasterPages() throws Exception
Exceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class OdfPackageDocumentpublic OdfFileDom getFileDom(OdfSchemaDocument.OdfXMLFile file) throws Exception
Exceptionpublic org.apache.jena.rdf.model.Model getRDFMetadata()
throws Exception
Exceptionpublic org.apache.jena.rdf.model.Model getInContentMetadata()
throws Exception
Exceptionpublic org.apache.jena.rdf.model.Model getInContentMetadataFromCache()
throws Exception
Exceptionpublic org.apache.jena.rdf.model.Model getManifestRDFMetadata()
throws Exception
ExceptionCopyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2019 The Document Foundation. All rights reserved.