Class StaticDocumentMetaData
java.lang.Object
org.pentaho.reporting.libraries.docbundle.StaticDocumentMetaData
- All Implemented Interfaces:
- Serializable,- Cloneable,- DocumentMetaData
A static (read-only) implementation of the document-metadata interface.
- Author:
- Thomas Morgner
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionStaticDocumentMetaData(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, org.pentaho.reporting.libraries.resourceloader.ResourceKey bundleKey) 
- 
Method SummaryModifier 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[]
- 
Constructor Details- 
StaticDocumentMetaDatapublic StaticDocumentMetaData(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, org.pentaho.reporting.libraries.resourceloader.ResourceKey bundleKey) throws org.pentaho.reporting.libraries.resourceloader.ResourceException - Throws:
- org.pentaho.reporting.libraries.resourceloader.ResourceException
 
 
- 
- 
Method Details- 
getBundleTypeDescription copied from interface:DocumentMetaDataReturns 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 interface- DocumentMetaData
- Returns:
- the bundle type.
 
- 
getEntryMimeTypeDescription copied from interface:DocumentMetaDataReturns 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 interface- DocumentMetaData
- Parameters:
- entry- the entry path.
- Returns:
- the mime-type.
 
- 
getBundleAttributeDescription copied from interface:DocumentMetaDataReturns 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 interface- DocumentMetaData
- Parameters:
- namespace- the namespace uri
- attributeName- the attribute name
- Returns:
- the attribute value.
 
- 
getManifestEntryNames- Specified by:
- getManifestEntryNamesin interface- DocumentMetaData
 
- 
getMetaDataNamespaces- Specified by:
- getMetaDataNamespacesin interface- DocumentMetaData
 
- 
getMetaDataNames- Specified by:
- getMetaDataNamesin interface- DocumentMetaData
 
- 
getEntryAttribute- Specified by:
- getEntryAttributein interface- DocumentMetaData
 
- 
getEntryAttributeNames- Specified by:
- getEntryAttributeNamesin interface- DocumentMetaData
 
- 
clone- Specified by:
- clonein interface- DocumentMetaData
- Overrides:
- clonein class- Object
- Throws:
- CloneNotSupportedException
 
 
-