|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LanguageGenerator
Language generator interface.
THIS PACKAGE WAS ABANDONED IN FAVOR OF ANOTHER PROJECT
Version History
EPG - Initial - 10 MAY 06
Method Summary | |
---|---|
void |
initialize(WordDictionary dictionary)
Initialize it with a dictionary. |
void |
page(AText target,
int size,
int wrap,
java.lang.String wrapPrepend)
Get a page of paragraphs. |
java.lang.String |
page(int size,
int wrap,
java.lang.String wrapPrepend)
Get a page of paragraphs. |
void |
paragraph(AText target,
int size,
int wrap,
java.lang.String wrapPrepend)
Get a paragraph of specified size. |
java.lang.String |
paragraph(int size,
int wrap,
java.lang.String wrapPrepend)
Get a paragraph of specified size. |
void |
sentence(AText target,
int size,
int wrap,
java.lang.String wrapPrepend)
Get a sentence of specified size. |
java.lang.String |
sentence(int size,
int wrap,
java.lang.String wrapPrepend)
Get a sentence of specified size. |
java.lang.String |
word()
Get a word of random size. |
java.lang.String |
word(int size)
Get a word of specified size |
Method Detail |
---|
void initialize(WordDictionary dictionary) throws java.lang.Throwable
dictionary
-
java.lang.Throwable
java.lang.String word() throws java.lang.Throwable
java.lang.Throwable
java.lang.String word(int size) throws java.lang.Throwable
size
- In character count(not byte count). It must be more than 0.
java.lang.Throwable
java.lang.String sentence(int size, int wrap, java.lang.String wrapPrepend) throws java.lang.Throwable
size
- In character count(not byte count), including whitespace. It must be more than 2.wrap
- Line wrap size. It must be more than 3.wrapPrepend
- if not null, prepend this after each line wrap.
java.lang.Throwable
void sentence(AText target, int size, int wrap, java.lang.String wrapPrepend) throws java.lang.Throwable
target
- The sentence will be added to this.size
- In character count(not byte count), including whitespace. It must be more than 2.wrap
- Line wrap size. It must be more than 3.wrapPrepend
- if not null, prepend this after each line wrap.
java.lang.Throwable
java.lang.String paragraph(int size, int wrap, java.lang.String wrapPrepend) throws java.lang.Throwable
size
- In character count(not byte count). It must be more than PARAGRAPH_MIN_SIZE.wrap
- Line wrap size. It must be more than 3.wrapPrepend
- if not null, prepend this after each line wrap.
java.lang.Throwable
void paragraph(AText target, int size, int wrap, java.lang.String wrapPrepend) throws java.lang.Throwable
size
- In character count(not byte count). It must be more than PARAGRAPH_MIN_SIZE.target
- The sentence will be added to this.wrap
- Line wrap size. It must be more than 3.wrapPrepend
- if not null, prepend this after each line wrap.
java.lang.Throwable
java.lang.String page(int size, int wrap, java.lang.String wrapPrepend) throws java.lang.Throwable
size
- In character count(not byte count). It must be more than PARAGRAPH_MIN_SIZE.wrap
- Line wrap size. It must be more than 3.wrapPrepend
- if not null, prepend this after each line wrap.
java.lang.Throwable
void page(AText target, int size, int wrap, java.lang.String wrapPrepend) throws java.lang.Throwable
size
- In character count(not byte count). It must be more than PARAGRAPH_MIN_SIZE.target
- The sentence will be added to this.wrap
- Line wrap size. It must be more than 3.wrapPrepend
- if not null, prepend this after each line wrap.
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |