|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.address.util.LibraryAddressUtils
public final class LibraryAddressUtils
Utils methods for library address
| Field Summary | |
|---|---|
static String |
CONSTANT_CLOSE_PARENTHESIS
|
static String |
CONSTANT_COMA
|
static String |
CONSTANT_MULTI_SPACE
|
static String |
CONSTANT_ONE_SPACE
|
static String |
CONSTANT_OPEN_PARENTHESIS
|
static String |
VALID_GEOMETRY_REGEX
|
| Method Summary | |
|---|---|
static void |
fillAddressGeolocation(Adresse adresse,
String strGeometry)
Fills the address with x and y geolocation using strGeometry. |
static boolean |
isTerminateByApostrophe(String strTypeVoie)
Test strTypeVoie is termitate by a value of list strListValuesTerminator |
static String |
normalizeAddress(Adresse adresse)
String representation of the adresse |
static int |
parseInt(String strValue)
Parse a long |
static int |
parseInt(String strValue,
int nDefaultValue)
Parse a long |
static long |
parseLong(String strValue)
Parse a long |
static long |
parseLong(String strValue,
long nDefaultValue)
Parse a long |
static String |
removeMultiSpace(String strChaine)
Replace a sequence of space by one space |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONSTANT_COMA
public static final String CONSTANT_MULTI_SPACE
public static final String CONSTANT_ONE_SPACE
public static final String CONSTANT_OPEN_PARENTHESIS
public static final String CONSTANT_CLOSE_PARENTHESIS
public static final String VALID_GEOMETRY_REGEX
| Method Detail |
|---|
public static String removeMultiSpace(String strChaine)
strChaine - the chaine
public static boolean isTerminateByApostrophe(String strTypeVoie)
strTypeVoie - the type voie to test
public static long parseLong(String strValue)
strValue - the value to parse
strValue, -1 otherwise.
public static long parseLong(String strValue,
long nDefaultValue)
strValue - the value to parsenDefaultValue - the default value
strValue, nDefaultValue otherwise.public static int parseInt(String strValue)
strValue - the value to parse
strValue, -1 otherwise.
public static int parseInt(String strValue,
int nDefaultValue)
strValue - the value to parsenDefaultValue - the default value
strValue, nDefaultValue otherwise.
public static void fillAddressGeolocation(Adresse adresse,
String strGeometry)
POINT (123.456789 987.654321) will give x = 123.456789 and y = 987.654321.
Set x and y to 0 if x or y is not a number.
adresse - the address to fillstrGeometry - the geometry stringpublic static String normalizeAddress(Adresse adresse)
adresse - the adresse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||