Package nl.siegmann.epublib.domain
Class Guide
- java.lang.Object
-
- nl.siegmann.epublib.domain.Guide
-
- All Implemented Interfaces:
java.io.Serializable
public class Guide extends java.lang.Object implements java.io.SerializableThe 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static intCOVERPAGE_NOT_FOUNDprivate static intCOVERPAGE_UNITIALIZEDprivate intcoverPageIndexstatic java.lang.StringDEFAULT_COVER_TITLEprivate java.util.List<GuideReference>referencesprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description Guide()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceReferenceaddReference(GuideReference reference)private voidcheckCoverPage()ResourcegetCoverPage()The coverpage of the book.GuideReferencegetCoverReference()java.util.List<GuideReference>getGuideReferencesByType(java.lang.String referenceTypeName)A list of all GuideReferences that have the given referenceTypeName (ignoring case).java.util.List<GuideReference>getReferences()private voidinitCoverPage()voidsetCoverPage(Resource coverPage)intsetCoverReference(GuideReference guideReference)voidsetReferences(java.util.List<GuideReference> references)private voiduncheckCoverPage()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
DEFAULT_COVER_TITLE
public static final java.lang.String DEFAULT_COVER_TITLE
-
references
private java.util.List<GuideReference> references
-
COVERPAGE_NOT_FOUND
private static final int COVERPAGE_NOT_FOUND
- See Also:
- Constant Field Values
-
COVERPAGE_UNITIALIZED
private static final int COVERPAGE_UNITIALIZED
- See Also:
- Constant Field Values
-
coverPageIndex
private int coverPageIndex
-
-
Method Detail
-
getReferences
public java.util.List<GuideReference> getReferences()
-
setReferences
public void setReferences(java.util.List<GuideReference> references)
-
uncheckCoverPage
private void uncheckCoverPage()
-
getCoverReference
public GuideReference getCoverReference()
-
setCoverReference
public int setCoverReference(GuideReference guideReference)
-
checkCoverPage
private void checkCoverPage()
-
initCoverPage
private void initCoverPage()
-
getCoverPage
public Resource getCoverPage()
The coverpage of the book.- Returns:
- The coverpage of the book.
-
setCoverPage
public void setCoverPage(Resource coverPage)
-
addReference
public ResourceReference addReference(GuideReference reference)
-
getGuideReferencesByType
public java.util.List<GuideReference> getGuideReferencesByType(java.lang.String referenceTypeName)
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).
-
-