org.apache.maven.doxia.book.services.renderer
Class XdocBookRenderer

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.doxia.book.services.renderer.XdocBookRenderer
All Implemented Interfaces:
BookRenderer, org.codehaus.plexus.logging.LogEnabled

public class XdocBookRenderer
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements BookRenderer

An implementation of BookRenderer for Xdoc

Version:
$Id: XdocBookRenderer.java 1003021 2010-09-30 11:51:11Z ltheussl $
Author:
Trygve Laugstøl, Vincent Siveton

Field Summary
 
Fields inherited from interface org.apache.maven.doxia.book.services.renderer.BookRenderer
ROLE
 
Constructor Summary
XdocBookRenderer()
           
 
Method Summary
protected  java.lang.String getString(java.util.Locale locale, java.lang.String key)
          Gets a trimmed String for the given key from the resource bundle defined by Plexus.
 void renderBook(BookContext context)
          Render a book.
 
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
 

Constructor Detail

XdocBookRenderer

public XdocBookRenderer()
Method Detail

renderBook

public void renderBook(BookContext context)
                throws BookDoxiaException
Render a book.

Specified by:
renderBook in interface BookRenderer
Parameters:
context - the BookContext.
Throws:
BookDoxiaException - if the book cannot be rendered.

getString

protected java.lang.String getString(java.util.Locale locale,
                                     java.lang.String key)
Gets a trimmed String for the given key from the resource bundle defined by Plexus.

Parameters:
locale - the locale used
key - the key for the desired string
Returns:
the string for the given key and the given locale


Copyright © 2005-2012. All Rights Reserved.