org.openptk.util
Class RandomData
java.lang.Object
org.openptk.util.RandomData
public class RandomData
- extends java.lang.Object
Methods that generate random data.
- Author:
- Scott Fehrman, Sun Microsystems, Inc.
Method Summary |
static java.lang.String |
getString(int length)
Generate a random String of the specified length. |
static java.lang.String |
getString(java.util.Properties props)
Generate a random String based on the specified Properties. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CASE_BOTH
public static final java.lang.String CASE_BOTH
- See Also:
- Constant Field Values
CASE_LOWER
public static final java.lang.String CASE_LOWER
- See Also:
- Constant Field Values
CASE_UPPER
public static final java.lang.String CASE_UPPER
- See Also:
- Constant Field Values
DEFAULT_CASE
public static final java.lang.String DEFAULT_CASE
- See Also:
- Constant Field Values
DEFAULT_SIZE
public static final int DEFAULT_SIZE
- See Also:
- Constant Field Values
DEFAULT_TYPE
public static final java.lang.String DEFAULT_TYPE
- See Also:
- Constant Field Values
PROP_CASE
public static final java.lang.String PROP_CASE
- See Also:
- Constant Field Values
PROP_CHAR_SET
public static final java.lang.String PROP_CHAR_SET
- See Also:
- Constant Field Values
PROP_SIZE
public static final java.lang.String PROP_SIZE
- See Also:
- Constant Field Values
PROP_TYPE
public static final java.lang.String PROP_TYPE
- See Also:
- Constant Field Values
TYPE_ALPHA
public static final java.lang.String TYPE_ALPHA
- See Also:
- Constant Field Values
TYPE_BOTH
public static final java.lang.String TYPE_BOTH
- See Also:
- Constant Field Values
TYPE_NUMERIC
public static final java.lang.String TYPE_NUMERIC
- See Also:
- Constant Field Values
getString
public static java.lang.String getString(int length)
- Generate a random String of the specified length.
- Parameters:
length
- int length of the random String
- Returns:
- String generated random data
getString
public static java.lang.String getString(java.util.Properties props)
- Generate a random String based on the specified Properties.
- Parameters:
props
- Properties random data specifications
- Returns:
- String generated random data
main
public static void main(java.lang.String[] args)
- Parameters:
args
- (not used)
View/submit a bug or feature
For further API reference and developer documentation, see www.openptk.org.
That documentation contains more detailed, developer-targeted descriptions,
definitions of terms, workarounds, and working code examples.
Copyright (C) 2008-2012, Project OpenPTK. All Rights Reserved