Class TocCreatorDefault
- java.lang.Object
-
- coza.opencollab.epub.creator.impl.TocCreatorDefault
-
- All Implemented Interfaces:
TocCreator
public class TocCreatorDefault extends Object implements TocCreator
Default implementation of the TocCreator. This follows EPUB3 standards to create the Navigation Document file content.- Author:
- OpenCollab
-
-
Constructor Summary
Constructors Constructor Description TocCreatorDefault()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Content
createTocFromBook(EpubBook book)
Creates the EPUB TOC navigation document Content objectString
getHref()
String
getTocHtml()
void
setHref(String href)
void
setTocHtml(String tocHtml)
-
-
-
Method Detail
-
createTocFromBook
public Content createTocFromBook(EpubBook book)
Creates the EPUB TOC navigation document Content object- Specified by:
createTocFromBook
in interfaceTocCreator
- Parameters:
book
- the EpubBook to create the TOC for- Returns:
- the TOC Content object
-
getHref
public String getHref()
- Returns:
- the HREF
-
setHref
public void setHref(String href)
- Parameters:
href
- the HREF to set
-
getTocHtml
public String getTocHtml()
- Returns:
- the tocHtml
-
setTocHtml
public void setTocHtml(String tocHtml)
- Parameters:
tocHtml
- the tocHtml to set
-
-