org.apache.maven.doxia.sink
Class SinkTestDocument

java.lang.Object
  extended by org.apache.maven.doxia.sink.SinkTestDocument

public class SinkTestDocument
extends Object

Static methods to generate standard Doxia sink events.

Version:
$Id: SinkTestDocument.java 779902 2009-05-29 09:32:47Z ltheussl $

Method Summary
static void generate(Sink sink)
          Dumps a full model that mimics aptconvert's test.apt, into the specified sink.
static void generateAnchors(Sink sink)
          Dumps a paragraph with anchor and link elements into the specified sink.
static void generateDefinitionList(Sink sink)
          Dumps a definition list into the specified sink.
static void generateFigure(Sink sink)
          Dumps a figure with figure caption into the specified sink.
static void generateFonts(Sink sink)
          Dumps a paragraph with italic, bold and monospaced text into the specified sink.
static void generateHead(Sink sink)
          Dumps a header with title, author and date elements into the specified sink.
static void generateHeaderTable(Sink sink)
          Dumps a table with a header row into the specified sink.
static void generateHorizontalRule(Sink sink)
          Dumps a horizontal rule block into the specified sink.
static void generateLineBreak(Sink sink)
          Dumps a lineBreak block into the specified sink.
static void generateList(Sink sink)
          Dumps a list into the specified sink.
static void generateNoGridTable(Sink sink)
          Dumps a table without grid into the specified sink.
static void generateNonBreakingSpace(Sink sink)
          Dumps a nonBreakingSpace block into the specified sink.
static void generateNumberedList(Sink sink)
          Dumps a numbered list into the specified sink.
static void generatePageBreak(Sink sink)
          Dumps a pageBreak block into the specified sink.
static void generateSpecialCharacters(Sink sink)
          Dumps a special character block into the specified sink.
static void generateTable(Sink sink)
          Dumps a table with grid and caption into the specified sink.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generate

public static void generate(Sink sink)
Dumps a full model that mimics aptconvert's test.apt, into the specified sink. The sink is flushed but not closed.

Parameters:
sink - The sink to receive the events.

generateHead

public static void generateHead(Sink sink)
Dumps a header with title, author and date elements into the specified sink. The sink is not flushed or closed.

Parameters:
sink - The sink to receive the events.

generateList

public static void generateList(Sink sink)
Dumps a list into the specified sink. The sink is not flushed or closed.

Parameters:
sink - The sink to receive the events.

generateNumberedList

public static void generateNumberedList(Sink sink)
Dumps a numbered list into the specified sink. The sink is not flushed or closed.

Parameters:
sink - The sink to receive the events.

generateDefinitionList

public static void generateDefinitionList(Sink sink)
Dumps a definition list into the specified sink. The sink is not flushed or closed.

Parameters:
sink - The sink to receive the events.

generateFigure

public static void generateFigure(Sink sink)
Dumps a figure with figure caption into the specified sink. The sink is not flushed or closed.

Parameters:
sink - The sink to receive the events.

generateTable

public static void generateTable(Sink sink)
Dumps a table with grid and caption into the specified sink. The sink is not flushed or closed.

Parameters:
sink - The sink to receive the events.

generateNoGridTable

public static void generateNoGridTable(Sink sink)
Dumps a table without grid into the specified sink. The sink is not flushed or closed.

Parameters:
sink - The sink to receive the events.

generateHeaderTable

public static void generateHeaderTable(Sink sink)
Dumps a table with a header row into the specified sink. The sink is not flushed or closed.

Parameters:
sink - The sink to receive the events.

generateFonts

public static void generateFonts(Sink sink)
Dumps a paragraph with italic, bold and monospaced text into the specified sink. The sink is not flushed or closed.

Parameters:
sink - The sink to receive the events.

generateAnchors

public static void generateAnchors(Sink sink)
Dumps a paragraph with anchor and link elements into the specified sink. The sink is not flushed or closed.

Parameters:
sink - The sink to receive the events.

generateHorizontalRule

public static void generateHorizontalRule(Sink sink)
Dumps a horizontal rule block into the specified sink. The sink is not flushed or closed.

Parameters:
sink - The sink to receive the events.

generatePageBreak

public static void generatePageBreak(Sink sink)
Dumps a pageBreak block into the specified sink. The sink is not flushed or closed.

Parameters:
sink - The sink to receive the events.

generateLineBreak

public static void generateLineBreak(Sink sink)
Dumps a lineBreak block into the specified sink. The sink is not flushed or closed.

Parameters:
sink - The sink to receive the events.

generateNonBreakingSpace

public static void generateNonBreakingSpace(Sink sink)
Dumps a nonBreakingSpace block into the specified sink. The sink is not flushed or closed.

Parameters:
sink - The sink to receive the events.

generateSpecialCharacters

public static void generateSpecialCharacters(Sink sink)
Dumps a special character block into the specified sink. The sink is not flushed or closed.

Parameters:
sink - The sink to receive the events.


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.