|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.flotsam.pecia.builder.base.AbstractBuilder<T>
nl.flotsam.pecia.builder.base.DefaultParaBuilder<T>
public class DefaultParaBuilder<T>
| Constructor Summary | |
|---|---|
DefaultParaBuilder(DocumentBuilder builder,
T parent,
LifecycleListener listener)
|
|
| Method Summary | |
|---|---|
Para<T> |
code(String text)
Adds some code to the paragraph. |
Para<T> |
document(Documenter<ParaContents<?>> target)
Generates documentation, and returns the current context. |
Para<T> |
email(String email)
Inserts an email address. |
Para<T> |
emphasis(String text)
Adds an inline emphasized section. |
Footnote<? extends Para<T>> |
footnote()
Inserts a footnote. |
Para<T> |
footnote(String text)
Inserts a footnote, containing a Para containing the text passed
in. |
Para<T> |
link(Object id,
String text)
Constructs a link to the documet item identified by the specified id. |
ParaBuilder<T> |
start()
|
Para<T> |
term(Object id,
String text)
Inserts a term into the content. |
Para<T> |
text(String text)
Appends some text to the paragraph. |
Para<T> |
xref(String id)
Inserts a cross reference to another document element. |
| 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 |
|---|
public DefaultParaBuilder(DocumentBuilder builder,
T parent,
LifecycleListener listener)
| Method Detail |
|---|
public Para<T> code(String text)
ParaContents
code in interface ParaContents<T>text - The text to be produced as code.
public Para<T> email(String email)
ParaContents
email in interface ParaContents<T>email - The email address.
public Para<T> emphasis(String text)
ParaContents
emphasis in interface ParaContents<T>text - The text to be emphasized.
public Footnote<? extends Para<T>> footnote()
ParaContents
footnote in interface ParaContents<T>public Para<T> text(String text)
ParaContents
text in interface ParaContents<T>text - The text to be appended to the paragraph.
public Para<T> xref(String id)
ParaContents
xref in interface ParaContents<T>id - The identifier of the element to which you are referring.
public ParaBuilder<T> start()
start in interface Initializer<ParaBuilder<T>>
public Para<T> link(Object id,
String text)
ParaContents
link in interface ParaContents<T>id - The identifier of the document element referenced.text - The text to be included in the link.
public Para<T> term(Object id,
String text)
ParaContents
term in interface ParaContents<T>id - The object identifying this term.text - The term itself.public Para<T> footnote(String text)
ParaContentsPara containing the text passed
in.
footnote in interface ParaContents<T>text - The text in the paragraph added to the footnote.public Para<T> document(Documenter<ParaContents<?>> target)
ParaContents
document in interface ParaContents<T>target - The object generating the documentation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||