|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OEBPackageFile
This interface allows access to information contained in an Open eBook package file. This file specifies the contents of a particular Open-ebook publication, and contains meta-deta about the publication. Additionally, it contains a linear reading sequence (called a spine) and optionally several tours through the text
Method Summary | |
---|---|
java.util.List |
getContributors()
Retrieves a list of contributors to the publication |
java.util.List |
getCreators()
Retrieves a list of creators for this publication |
java.util.Date |
getDate(java.lang.String event)
Retrieves the specified date specified for the publication Specific dates events are not currently defined by the OEB publication structure |
java.lang.String |
getDescription()
Returns a (perhaps verbose) description of the publication |
OEBItem |
getFirstItem()
Retrieve an OEBItem object corresponding to the
first item referenced in the spine |
java.lang.String |
getFormat()
Retrieves the format of the publication as a whole |
OEBItem |
getGuideTableOfContents()
retrieves the OEBItem corresponding to the "toc" element in the guide, which references an element in the manifest. |
OEBIdentifier |
getIdentifier(java.lang.String scheme)
Retrieves a particular identifier |
java.util.List |
getIdentifiers()
Retrieves a list of identifiers for this publication |
java.lang.String |
getLanguage()
The language of the publication |
OEBItem |
getLastItem()
Retrieve an OEBItem object corresponding to the
last item referenced in the spine |
OEBItem |
getManifestItem(java.lang.String id)
Retrieves a specific item from the manifest |
OEBItem |
getManifestItem(java.lang.String id,
java.util.Set allowedTypes)
Retrieves a specific item from the manifest with a specific media type. |
java.util.List |
getManifestItems()
Retrieves a list of the resources making up this publication |
OEBItem |
getNextItem(java.lang.String id)
Retrieve an OEBItem object corresponding to the
item after the specified item |
java.lang.String |
getPackageIdentity()
Returns the unique identifier for this publication |
OEBItem |
getPreviousItem(java.lang.String id)
Retrieve an OEBItem object corresponding to the
item before the specified item |
java.lang.String |
getPublicationTitle()
Retrieves the human readable title of this publication |
java.lang.String |
getPublisher()
Returns a string identifying the publication's publisher |
java.lang.String |
getRights()
Retrieves a description of the user's rights for use of this publication. |
java.lang.String |
getSource()
Retrieves a source this publication is derived from |
OEBSpine |
getSpine()
Retrieves an OEBSpine element for this publication |
java.util.List |
getSubjects()
Retrieves the subjects of the publication |
java.lang.String |
getTableOfContents()
constructs an HTML document representing the table of contents for the package |
boolean |
isFirstItem(java.lang.String id)
Determine whether the OEBItem object identified using the given id is the first item in the spine |
boolean |
isLastItem(java.lang.String id)
Determine whether the OEBItem object identified using the given id is the last item in the spine |
java.util.ListIterator |
listIterator()
Retrieves an object useful for iterating over the spine elements |
OEBItem |
lookupURL(java.lang.String url)
returns the OEB item corresponding to a given URL in the publication |
OEBItem |
lookupURLByPkgID(java.lang.String url)
returns the OEB item corresponding to a given URL in the publication based on the PackageIdentity URL |
Method Detail |
---|
java.lang.String getPackageIdentity()
OEBIdentifier
object corresponding
to the dc:Identifier element whose ID is referenced
by the unique-identifier attribute of the package
elementjava.lang.String getPublicationTitle()
java.util.List getIdentifiers()
List
containing OEBIdentifier
objects corresponding to the dc:Identifier elements in
the publication packageOEBIdentifier getIdentifier(java.lang.String scheme) throws java.util.NoSuchElementException
scheme
- the particular scheme whose identifier is being requested
OEBIdentifier
object corresponding to the requested
scheme
java.util.NoSuchElementException
- if no identifier matching
the requested scheme can be foundjava.util.List getCreators()
java.util.List getSubjects()
List
item containing the subjects of the publicationjava.lang.String getDescription()
java.lang.String getPublisher()
java.util.List getContributors()
List
item that contains OEB.OEBContributor
objects describing the creators for the publicationjava.util.Date getDate(java.lang.String event)
event
- a string identifying the date being requested,
such as the publication date, last modification date, etc.java.lang.String getFormat()
java.lang.String getSource()
java.lang.String getLanguage()
java.lang.String getRights()
java.util.List getManifestItems()
List
of OEBItem
objectsOEBItem getManifestItem(java.lang.String id) throws java.util.NoSuchElementException
id
- The unique identifier for the resource
OEBItem
that corresponds to the given id;
the first item found is returned, regardless of its media type
java.util.NoSuchElementException
- if no item corresponding to the
given id exists in the manifestOEBItem getManifestItem(java.lang.String id, java.util.Set allowedTypes) throws java.util.NoSuchElementException
id
- The unique identifier for the resourceallowedTypes
- a set of allowed media types for the
resource.
OEBItem
that corresponds to the given id,
AND has a media type contained in the allowedTypes Set.
java.util.NoSuchElementException
- if the requested id does not
exist, or if now item with an allowable media type is foundOEBSpine getSpine()
OEBSpine
element for this publication
OEBItem getFirstItem()
OEBItem
object corresponding to the
first item referenced in the spine
OEBItem getLastItem()
OEBItem
object corresponding to the
last item referenced in the spine
OEBItem getNextItem(java.lang.String id)
OEBItem
object corresponding to the
item after the specified item
id
- the unique identifier of the item before the requested itemOEBItem getPreviousItem(java.lang.String id)
OEBItem
object corresponding to the
item before the specified item
id
- the unique identifier of the item after the requested itemboolean isLastItem(java.lang.String id)
id
- an id identifying the item in the book
boolean isFirstItem(java.lang.String id)
id
- an id identifying the item in the book
java.util.ListIterator listIterator()
listIterator
object that
can be used to retrieve the spine elements in orderOEBItem lookupURL(java.lang.String url) throws java.util.NoSuchElementException
url
- the fully specified URL to check
OEBItem
for the URL specified by url
java.util.NoSuchElementException
- if the URL url is not contained
in the manifest for this publicationOEBItem lookupURLByPkgID(java.lang.String url) throws java.util.NoSuchElementException
url
- the fully specified URL to check
OEBItem
for the URL specified by url
java.util.NoSuchElementException
- if the URL url is not contained
in the manifest for this publicationjava.lang.String getTableOfContents()
OEBItem getGuideTableOfContents() throws java.util.NoSuchElementException
java.util.NoSuchElementException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |