Package org.openpreservation.odf.pkg
Interface Manifest
public interface Manifest
-
Method Summary
Modifier and TypeMethodDescriptionGet the set of FileEntry objects that are documents, i.e.Get the Set of FileEntry objects fior all manifest entries with encryption XML data.Get the Set of FileEntry objects in the Manifest.getEntriesByMediaType
(String mediaType) Get the Set of FileEntry objects in the Manifest that have the supplied media type.Get a manifest entry by nameint
Get the number of entries in the Manifest.getEntryMediaType
(String entryName) Get a manifest entry media type by nameGet the declared media type of the Manifest from the root "/" element.Get the declared version of the ODF package from the root "/" element.Get the declared version of the Manifest from the root element.boolean
Find out whether the manifest has a FileEntry with the full path attribute "/".
-
Method Details
-
getVersion
String getVersion()Get the declared version of the Manifest from the root element.- Returns:
-
hasRootMediaType
boolean hasRootMediaType()Find out whether the manifest has a FileEntry with the full path attribute "/".- Returns:
- true if a root element .
-
getRootMediaType
String getRootMediaType()Get the declared media type of the Manifest from the root "/" element.- Returns:
- the declared media type of the Manifest.
-
getRootVersion
String getRootVersion()Get the declared version of the ODF package from the root "/" element.- Returns:
- the declared version of the ODF package.
-
getEntryCount
int getEntryCount()Get the number of entries in the Manifest.- Returns:
- the numbner of manifest entries.
-
getEntries
Get the Set of FileEntry objects in the Manifest.- Returns:
- the set of file entries.
-
getEntriesByMediaType
Get the Set of FileEntry objects in the Manifest that have the supplied media type.- Parameters:
mediaType
- the media type to filter the entries by.- Returns:
- the Set of FileEntry objects that have the supplied media type.
-
getEncryptedEntries
Get the Set of FileEntry objects fior all manifest entries with encryption XML data.- Returns:
- the Set of FileEntry objects that have encryption XML data.
-
getEntry
Get a manifest entry by name- Parameters:
entryName
- the name to find the entry by.- Returns:
- the FileEntry object for the supplied name, or null if not found.
-
getEntryMediaType
Get a manifest entry media type by name- Parameters:
entryName
- the name to find the entry by.- Returns:
- the FileEntry media type for the supplied name, or null if not found.
-
getDocumentEntries
Get the set of FileEntry objects that are documents, i.e. have a media type that is an ODF document.- Returns:
-