|
Project Wonder 5.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objecter.extensions.components.ERXLoremIpsumGenerator
public class ERXLoremIpsumGenerator
Provides a generator for Lorem Ipsum text.
| Field Summary | |
|---|---|
static java.lang.String |
PARAGRAPH
|
static java.lang.String |
SENTENCE
|
static java.lang.String |
WORD
|
| Constructor Summary | |
|---|---|
ERXLoremIpsumGenerator()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
all()
Returns the entire Lorem text. |
static java.lang.String |
firstParagraph()
Returns the first paragram from Lorem Ipsum text. |
static java.lang.String |
firstSentence()
Returns the first sentence of the first paragraph from Lorem text. |
static java.lang.String |
generate(java.lang.String type,
int count)
Generates lorem ipsum text using an enumerated type. |
static java.lang.String[] |
list(int size)
Returns a list of single sentences from the Lorem text. |
static java.lang.String[] |
list(int size,
int numberOfSentences)
Returns a list of a given number of sentences from the Lorem text. |
static java.lang.String |
paragraph()
Returns a random paragraph of Lorem text. |
static java.lang.String |
paragraph(int number)
Returns a particular paragraph from Lorem text. |
static java.lang.String |
paragraphs(int numParagraphs)
Returns any number of random paragraphs of Lorem text. |
static java.lang.String |
randomSentence()
Returns a random sentence from the Lorem text. |
static java.lang.String |
sentences(int numberSentences)
Returns a given number of random sentences from the Lorem text. |
static java.lang.String |
word()
Returns a single, randomly choosen, lowercase word from Lorem text. |
static java.lang.String |
words(int numWords)
Returns a specific number of random, lowercase, space-delimited words from Lorem text. |
static java.lang.String |
words(int min,
int max)
Returns a number of random, lowercase, space-delimited words between min and max. |
static java.lang.String |
words(int min,
int max,
int maxLength)
Returns a number of random, lowercase, space-delimited words between min and max. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PARAGRAPH
public static final java.lang.String SENTENCE
public static final java.lang.String WORD
| Constructor Detail |
|---|
public ERXLoremIpsumGenerator()
| Method Detail |
|---|
public static java.lang.String all()
public static java.lang.String firstParagraph()
public static java.lang.String firstSentence()
public static java.lang.String[] list(int size)
size - the number of items to insert into the list
public static java.lang.String[] list(int size,
int numberOfSentences)
size - the number of items to insert into the list
public static java.lang.String paragraph()
public static java.lang.String paragraph(int number)
number - the paragraph number to return, should be between 0 and 9
public static java.lang.String paragraphs(int numParagraphs)
numParagraphs - the number of paragraphs to return
public static java.lang.String randomSentence()
public static java.lang.String sentences(int numberSentences)
numberSentences - the number of sentences to select
public static java.lang.String word()
public static java.lang.String words(int numWords)
numWords - the number of words to return
public static java.lang.String words(int min,
int max,
int maxLength)
min - the minimum number of wordsmax - the maximum nunmber of wordsmaxLength - the string will be truncated to this length, if longer
public static java.lang.String words(int min,
int max)
min - the minimum number of wordsmax - the maximum nunmber of words
public static java.lang.String generate(java.lang.String type,
int count)
type - "paragraph", "sentence", or "word"count - the number of the type to generate
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||