org.apache.maven.doxia.book
Class DefaultBookDoxia
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.doxia.book.DefaultBookDoxia
- All Implemented Interfaces:
- BookDoxia, org.codehaus.plexus.logging.LogEnabled
public class DefaultBookDoxia
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements BookDoxia
Default implementation of BookDoxia.
- Version:
- $Id: DefaultBookDoxia.java 573255 2007-09-06 13:18:58Z ltheussl $
- Author:
- Trygve Laugstøl
Fields inherited from interface org.apache.maven.doxia.book.BookDoxia |
ROLE |
Method Summary |
java.util.Set |
getAvailableBookRenderers()
Returns a Set of ids of the BookRenderers that are available in this BookDoxia. |
BookModel |
loadBook(java.io.File bookDescriptor)
Load a BookModel from a descriptor file. |
void |
renderBook(BookModel book,
java.lang.String bookRendererId,
java.util.List files,
java.io.File outputDirectory)
Creates a book from a BookModel. |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBookDoxia
public DefaultBookDoxia()
loadBook
public BookModel loadBook(java.io.File bookDescriptor)
throws BookDoxiaException
- Load a BookModel from a descriptor file.
- Specified by:
loadBook
in interface BookDoxia
- Parameters:
bookDescriptor
- the book descriptor file.
- Returns:
- BookModel
- Throws:
BookDoxiaException
- if the model cannot be loaded.
renderBook
public void renderBook(BookModel book,
java.lang.String bookRendererId,
java.util.List files,
java.io.File outputDirectory)
throws BookDoxiaException
- Creates a book from a BookModel.
- Specified by:
renderBook
in interface BookDoxia
- Parameters:
book
- the BookModel.bookRendererId
- the id of the output format.files
- a list of source files.outputDirectory
- the output directory.
- Throws:
BookDoxiaException
- if the model cannot be loaded.
getAvailableBookRenderers
public java.util.Set getAvailableBookRenderers()
- Returns a Set of ids of the BookRenderers that are available in this BookDoxia.
- Returns:
- Set
Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.