|
XMetadatable | getElementByMetadataReference ([in] com::sun::star::beans::StringPair MetadataReference) |
| get the unique ODF element with the given metadata reference.
|
|
XMetadatable | getElementByURI ([in] XURI URI) raises ( com::sun::star::lang::IllegalArgumentException ) |
| get the ODF element that corresponds to a URI.
|
|
sequence< XURI > | getMetadataGraphsWithType ([in] XURI Type) raises ( com::sun::star::lang::IllegalArgumentException ) |
| get the names of all metadata files with a given type.
|
|
XURI | addMetadataFile ([in] string FileName, [in] sequence< XURI > Types) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::container::ElementExistException ) |
| add a metadata file to the manifest.
|
|
XURI | importMetadataFile ([in] short Format, [in] com::sun::star::io::XInputStream InStream, [in] string FileName, [in] XURI BaseURI, [in] sequence< XURI > Types) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::datatransfer::UnsupportedFlavorException, com::sun::star::container::ElementExistException, ParseException, com::sun::star::io::IOException ) |
| import a metadata file into the document repository, and add it to the manifest.
|
|
void | removeMetadataFile ([in] XURI GraphName) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::container::NoSuchElementException ) |
| remove a metadata file from the manifest and the repository.
|
|
void | addContentOrStylesFile ([in] string FileName) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::container::ElementExistException ) |
| add a content or styles file to the manifest.
|
|
void | removeContentOrStylesFile ([in] string FileName) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::container::NoSuchElementException ) |
| remove a content or styles file from the manifest.
|
|
void | loadMetadataFromStorage ([in] com::sun::star::embed::XStorage Storage, [in] XURI BaseURI, [in] com::sun::star::task::XInteractionHandler InteractionHandler) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException ) |
| initialize document metadata from a storage.
|
|
void | storeMetadataToStorage ([in] com::sun::star::embed::XStorage Storage) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException ) |
| store document metadata to a storage.
|
|
void | loadMetadataFromMedium ([in] sequence< com::sun::star::beans::PropertyValue > Medium) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException ) |
| loads document metadata from a medium.
|
|
void | storeMetadataToMedium ([in] sequence< com::sun::star::beans::PropertyValue > Medium) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException ) |
| stores document metadata to a medium.
|
|
XRepository | getRDFRepository () |
| provides the RDF Repository associated with this object.
|
|
document metadata functionality related to the "manifest.rdf".
This interface contains some methods that create connections between the content and the RDF metadata of an ODF document. The main idea is to make querying and manipulating the data in the metadata manifest easier.
Note that this interface inherits from XURI: the base URI of the document is the string value of the RDF node. This is so that you can easily make RDF statements about the document.
- Since
- OOo 3.2
- See also
- XDocumentRepository
initialize document metadata from a storage.
This method re-initializes the document metadata, loads the stream named "manifest.rdf" from the storage, and then loads all metadata streams mentioned in the manifest.
Note that it is not an error if the storage does not contain a manifest. In this case, the document metadata will be default initialized.
If an InteractionHandler argument is given, it will be used for error reporting. Otherwise, errors will be reported as exceptions.
- Parameters
-
Storage | a storage, representing e.g. an ODF package file, or sub-document |
BaseURI | a base URI to resolve relative URI references |
N.B.: when loading from an ODF package, the base URI is not the URI of the package, but the URI of the directory in the package that contains the metadata.rdf
- Parameters
-
InteractionHandler | an InteractionHandler, used for error reporting |
- Exceptions
-