|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.social.extras.injection.utils.LoremIpsum4J
public class LoremIpsum4J
Simple lorem ipsum text generator.
Suitable for creating sample data for test cases and performance tests.
| Field Summary | |
|---|---|
static String |
LOREM_IPSUM
|
| Constructor Summary | |
|---|---|
LoremIpsum4J()
|
|
| Method Summary | |
|---|---|
String |
getParagraphs()
Returns two paragraphs of lorem ipsum. |
String |
getParagraphs(int amount)
Returns paragraphs of lorem ipsum. |
String |
getWords()
Returns one sentence (50 words) of the lorem ipsum text. |
String |
getWords(int amount)
Returns words from the lorem ipsum text. |
String |
getWords(int amount,
int startIndex)
Returns words from the lorem ipsum text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LOREM_IPSUM
| Constructor Detail |
|---|
public LoremIpsum4J()
| Method Detail |
|---|
public String getWords()
public String getWords(int amount)
amount - Amount of words
public String getWords(int amount,
int startIndex)
amount - Amount of wordsstartIndex - Start index of word to begin with (must be >= 0 and < 50)
IndexOutOfBoundsException - If startIndex is < 0 or > 49public String getParagraphs()
public String getParagraphs(int amount)
amount - Amount of paragraphs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||