|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.onemind.commons.java.text.SimpleTextGenerator
A simple implementation of generator
Constructor Summary | |
SimpleTextGenerator(java.lang.String delimiter,
java.lang.String subDelimiter)
Constructor |
Method Summary | |
void |
addGenerator(java.lang.String subSpec,
TextGenerator gen)
add text generator to the sub specification |
java.lang.StringBuffer |
generateText(java.lang.String spec,
java.lang.Object obj)
{@inheritDoc} |
void |
generateText(java.lang.String spec,
java.lang.Object obj,
java.lang.StringBuffer sb)
Generate some text through the spec passed in |
TextGenerator |
getGenerator(java.lang.String subSpec)
Get the generator for subSpec |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleTextGenerator(java.lang.String delimiter, java.lang.String subDelimiter)
Method Detail |
public void addGenerator(java.lang.String subSpec, TextGenerator gen)
subSpec
- the sub specgen
- the sub generatorpublic java.lang.StringBuffer generateText(java.lang.String spec, java.lang.Object obj)
public void generateText(java.lang.String spec, java.lang.Object obj, java.lang.StringBuffer sb)
generateText
in interface TextGenerator
spec
- the specificationobj
- the target object where the text should be generate towards
public TextGenerator getGenerator(java.lang.String subSpec)
subSpec
- the sub spec
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |