|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jaulp.random.address.RandomAddressUtils
public class RandomAddressUtils
Utility class to create random addresses.
Field Summary | |
---|---|
static java.lang.String |
PROP_FILE_STREETS
Resource for get german streets. |
static java.lang.String |
PROP_FILE_ZIP_CITIES
Resource for get german zipcodes and the cities from it. |
Constructor Summary | |
---|---|
RandomAddressUtils()
|
Method Summary | |
---|---|
static java.lang.String |
getRandomStreet(java.util.Properties properties)
Returns a random german street. |
static java.lang.String |
getRandomStreetWithNumber(java.util.Properties properties)
Gets a random german street with a random number. |
static java.lang.String |
getRandomZip(java.util.Properties p)
Gets a random zip from the Properties. |
static java.lang.String |
getRandomZipAndCity(java.util.Properties properties)
Gets a random zip and the corresponding city from the Properties. |
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 PROP_FILE_STREETS
public static final java.lang.String PROP_FILE_ZIP_CITIES
Constructor Detail |
---|
public RandomAddressUtils()
Method Detail |
---|
public static java.lang.String getRandomStreet(java.util.Properties properties)
public static java.lang.String getRandomStreetWithNumber(java.util.Properties properties)
public static java.lang.String getRandomZip(java.util.Properties p)
p
- The Properties.
public static java.lang.String getRandomZipAndCity(java.util.Properties properties)
properties
- The Properties.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |