nl.flotsam.pecia
Interface Verbatim<T>

Type Parameters:
T - The type of the container parent element.
All Superinterfaces:
DocumentElement<T>
All Known Subinterfaces:
VerbatimBuilder<T>
All Known Implementing Classes:
DefaultVerbatimBuilder

public interface Verbatim<T>
extends DocumentElement<T>

The document element representing verbatim content.

Author:
Wilfred Springer

Method Summary
 Verbatim<T> newline()
          Forces a newline in the verbatim output.
 Verbatim<T> text(String text)
          Appends some text to the verbatim content.
 
Methods inherited from interface nl.flotsam.pecia.DocumentElement
end, getParent
 

Method Detail

newline

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

Returns:
The Verbatim element on which this operation was invoked. (To support chaining.)

text

Verbatim<T> text(String text)
Appends some text to the verbatim content.

Parameters:
text - The text to be appended.
Returns:
The Verbatim element on which this operation was invoked. (To support chaining.)


Copyright © 2010. All Rights Reserved.