nl.flotsam.pecia.builder.base
Class DefaultVerbatimBuilder<T>
java.lang.Object
nl.flotsam.pecia.builder.base.AbstractBuilder<T>
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>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultVerbatimBuilder
public DefaultVerbatimBuilder(DocumentBuilder builder,
T parent,
LifecycleListener listener)
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.