|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pushtotest.tool.util.Lingo
public class Lingo
Lingo creates dummy text for message body and message subject. The 2 methods that do the real work are the getMessage and getSubject that take the 4 arguments, the rest of the methods just pass in some default values for that stuff. It creates strings of pseudo-randomly selected words.
| Constructor Summary | |
|---|---|
Lingo()
Default constructor. |
|
Lingo(java.lang.String encoding)
Creates a Lingo object that will use a specific encoder. |
|
Lingo(java.lang.String[] inCaps,
java.lang.String[] inTokens)
Creates a Lingo object allowing the user to set the Capital words and the lowercase tokens that they would like to use to generate the Lingo. |
|
Lingo(java.lang.String[] inCaps,
java.lang.String[] inTokens,
java.lang.String encoding)
Creates a Lingo object allowing the user to set the Capital words and the lowercase tokens that they would like to use to generate the Lingo. |
|
| Method Summary | |
|---|---|
java.lang.String |
getMessage()
Creates a Lingo Message with a default size of about 35 words. |
java.lang.String |
getMessage(int length)
Creates a Lingo Message of the length specified This method uses capital letters, periods, etc. |
java.lang.String |
getMessage(int size,
boolean startCap,
boolean endPeriod,
boolean encoded)
Assemble the new message body. |
java.lang.String |
getMessageEncoded()
Creates a Lingo message with a default size of 35 words. |
java.lang.String |
getMessageEncoded(int length)
Creates a Lingo Message of the length specified This method uses capital letters, periods, etc. |
java.lang.String |
getSingle()
Return just a single Lingo word |
java.lang.String |
getSingleCap()
Return just a single capitalized Lingo word |
java.lang.String |
getString(int size)
Return a String containing the define number of random characters. |
java.lang.String |
getSubject()
Assemble the new subject line Uses a default of about 3 words |
java.lang.String |
getSubject(int length)
Assemble the new subject line Uses a default of about 3 words |
java.lang.String |
getSubject(int size,
boolean startCap,
boolean endPeriod,
boolean encoded)
Builds a Lingo String suitable for the subject of a message It won't have line breaks or anything in it |
java.lang.String |
getSubjectEncoded()
Assemble the new subject line Uses a default of about 3 words |
java.lang.String |
getSubjectEncoded(int length)
Assemble the new subject line |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Lingo()
public Lingo(java.lang.String encoding)
encoding - The encoding to use.
public Lingo(java.lang.String[] inCaps,
java.lang.String[] inTokens)
inCaps - The capital words used for starting sentences.inTokens - The lowercase words used for everything else
public Lingo(java.lang.String[] inCaps,
java.lang.String[] inTokens,
java.lang.String encoding)
inCaps - The capital words used for starting sentences.inTokens - The lowercase words used for everything elseencoding - The encoding style| Method Detail |
|---|
public java.lang.String getMessage()
public java.lang.String getMessage(int length)
length - The length that you want the message
public java.lang.String getMessageEncoded()
public java.lang.String getMessageEncoded(int length)
length - The length that you want the message
public java.lang.String getSubject()
public java.lang.String getSubject(int length)
length - The length that you want the message
public java.lang.String getSubjectEncoded()
public java.lang.String getSubjectEncoded(int length)
length - The length that you want the message
public java.lang.String getMessage(int size,
boolean startCap,
boolean endPeriod,
boolean encoded)
size - The length you want the message to bestartCap - Start with a capital letter?endPeriod - End with a period?encoded - URL Encoded?
public java.lang.String getSubject(int size,
boolean startCap,
boolean endPeriod,
boolean encoded)
size - The length you want the message to bestartCap - Start with a capital letter?endPeriod - End with a period?encoded - URL Encoded?
public java.lang.String getSingle()
public java.lang.String getSingleCap()
public java.lang.String getString(int size)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||