Class MemoryDocumentMetaData
java.lang.Object
org.pentaho.reporting.libraries.docbundle.MemoryDocumentMetaData
- All Implemented Interfaces:
Serializable,Cloneable,DocumentMetaData,WriteableDocumentMetaData
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()getBundleAttribute(String namespace, String attributeName) Returns a single document-meta-data attribute.Returns the bundle's defined mime-type.getEntryAttribute(String entryName, String attributeName) String[]getEntryAttributeNames(String entryName) getEntryMimeType(String entry) Returns the declared mime-type for the given entry.String[]String[]getMetaDataNames(String namespace) String[]booleanremoveEntry(String entry) voidsetBundleAttribute(String namespace, String name, Object value) voidsetBundleType(String type) voidsetEntryAttribute(String entryName, String attributeName, String value) voidsetEntryMimeType(String entry, String type)
-
Constructor Details
-
MemoryDocumentMetaData
public MemoryDocumentMetaData()
-
-
Method Details
-
setBundleType
- Specified by:
setBundleTypein interfaceWriteableDocumentMetaData
-
setBundleAttribute
- Specified by:
setBundleAttributein interfaceWriteableDocumentMetaData
-
getBundleType
Returns the bundle's defined mime-type. This value is read from the "/mimetype" entry (if existent) else from the manifest's "/" entry. The bundle type acts as a hint for the content processor on what content the main document contains. This entry is declarative - if the actual main document does not match the declared bundle type, parsing is allowed to fail.- Specified by:
getBundleTypein interfaceDocumentMetaData- Returns:
- the bundle type.
-
getEntryMimeType
Returns the declared mime-type for the given entry. The mime-type is declarative - if it does not match the actual content of the entry, the content processor may raise an error.- Specified by:
getEntryMimeTypein interfaceDocumentMetaData- Parameters:
entry- the entry path.- Returns:
- the mime-type.
-
getBundleAttribute
Returns a single document-meta-data attribute. Each attribute is specified by a namespace and attribute name and contains a single string value.- Specified by:
getBundleAttributein interfaceDocumentMetaData- Parameters:
namespace- the namespace uriattributeName- the attribute name- Returns:
- the attribute value.
-
getManifestEntryNames
- Specified by:
getManifestEntryNamesin interfaceDocumentMetaData
-
setEntryMimeType
- Specified by:
setEntryMimeTypein interfaceWriteableDocumentMetaData
-
setEntryAttribute
- Specified by:
setEntryAttributein interfaceWriteableDocumentMetaData
-
removeEntry
- Specified by:
removeEntryin interfaceWriteableDocumentMetaData
-
getMetaDataNamespaces
- Specified by:
getMetaDataNamespacesin interfaceDocumentMetaData
-
getMetaDataNames
- Specified by:
getMetaDataNamesin interfaceDocumentMetaData
-
getEntryAttribute
- Specified by:
getEntryAttributein interfaceDocumentMetaData
-
getEntryAttributeNames
- Specified by:
getEntryAttributeNamesin interfaceDocumentMetaData
-
clone
- Specified by:
clonein interfaceDocumentMetaData- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-