Class Guide
java.lang.Object
nl.siegmann.epublib.domain.Guide
- All Implemented Interfaces:
Serializable
The guide is a selection of special pages of the book.
Examples of these are the cover, list of illustrations, etc.
It is an optional part of an epub, and support for the various types of references varies by reader.
The only part of this that is heavily used is the cover page.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate intstatic final Stringprivate List<GuideReference> private static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddReference(GuideReference reference) private voidThe coverpage of the book.getGuideReferencesByType(String referenceTypeName) A list of all GuideReferences that have the given referenceTypeName (ignoring case).private voidvoidsetCoverPage(Resource coverPage) intsetCoverReference(GuideReference guideReference) voidsetReferences(List<GuideReference> references) private void
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
DEFAULT_COVER_TITLE
-
references
-
COVERPAGE_NOT_FOUND
private static final int COVERPAGE_NOT_FOUND- See Also:
-
COVERPAGE_UNITIALIZED
private static final int COVERPAGE_UNITIALIZED- See Also:
-
coverPageIndex
private int coverPageIndex
-
-
Constructor Details
-
Guide
public Guide()
-
-
Method Details
-
getReferences
-
setReferences
-
uncheckCoverPage
private void uncheckCoverPage() -
getCoverReference
-
setCoverReference
-
checkCoverPage
private void checkCoverPage() -
initCoverPage
private void initCoverPage() -
getCoverPage
-
setCoverPage
-
addReference
-
getGuideReferencesByType
A list of all GuideReferences that have the given referenceTypeName (ignoring case).- Parameters:
referenceTypeName-- Returns:
- A list of all GuideReferences that have the given referenceTypeName (ignoring case).
-