nl.flotsam.pecia.builder.base
Class DefaultVerbatimBuilder<T>

java.lang.Object
  extended by nl.flotsam.pecia.builder.base.AbstractBuilder<T>
      extended by nl.flotsam.pecia.builder.base.DefaultVerbatimBuilder<T>
All Implemented Interfaces:
Initializer<Verbatim<T>>, VerbatimBuilder<T>, DocumentElement<T>, Verbatim<T>

public class DefaultVerbatimBuilder<T>
extends AbstractBuilder<T>
implements VerbatimBuilder<T>


Constructor Summary
DefaultVerbatimBuilder(DocumentBuilder builder, T parent, LifecycleListener listener)
           
 
Method Summary
 Verbatim<T> newline()
          Forces a newline in the verbatim output.
 Verbatim<T> start()
           
 Verbatim<T> text(String text)
          Appends some text to the verbatim content.
 
Methods inherited from class nl.flotsam.pecia.builder.base.AbstractBuilder
end, getBuilder, getListener, getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nl.flotsam.pecia.DocumentElement
end, getParent
 

Constructor Detail

DefaultVerbatimBuilder

public DefaultVerbatimBuilder(DocumentBuilder builder,
                              T parent,
                              LifecycleListener listener)
Method Detail

newline

public Verbatim<T> newline()
Description copied from interface: Verbatim
Forces a newline in the verbatim output. (Newline characters in Verbatim.text(String) might not always be regarded as newlines. It's generally safer to invoke this operation.

Specified by:
newline in interface Verbatim<T>
Returns:
The Verbatim element on which this operation was invoked. (To support chaining.)

text

public Verbatim<T> text(String text)
Description copied from interface: Verbatim
Appends some text to the verbatim content.

Specified by:
text in interface Verbatim<T>
Parameters:
text - The text to be appended.
Returns:
The Verbatim element on which this operation was invoked. (To support chaining.)

start

public Verbatim<T> start()
Specified by:
start in interface Initializer<Verbatim<T>>


Copyright © 2010. All Rights Reserved.