|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.bc.gov.webade.WebADEUtils
| Field Summary | |
static java.lang.String |
BACKSLASH
Helper constant for the '\' character. |
static java.lang.String |
DEFAULT_ENCODING
The default encoding scheme for URL encoding and decoding. |
static java.lang.String |
FORWARDSLASH
Helper constant for the '/' character. |
| Constructor Summary | |
WebADEUtils()
|
|
| Method Summary | |
static boolean |
areEqual(java.util.Date value1,
java.util.Date value2)
Compares two dates, returning true if they are both null, or are equivalent dates. |
static boolean |
areEqual(java.lang.Object value1,
java.lang.Object value2)
Compares two objects, returning true if they are both null, or the equals() Object method returns true. |
static boolean |
areEqual(java.lang.String value1,
java.lang.String value2)
Compares two strings, returning true if they are both null, or are equivalent strings. |
static java.lang.String |
convertBackSlashesToForward(java.lang.String value)
Deprecated. Use ca.bc.gov.webade.user.WebADEUserUtils method convertBackSlashesToForward() instead. |
static java.lang.String |
convertForwardSlashesToBack(java.lang.String value)
Deprecated. Use ca.bc.gov.webade.user.WebADEUserUtils method convertForwardSlashesToBack() instead. |
static java.lang.String |
convertGUIDFormat(java.lang.String guid)
Deprecated. Use ca.bc.gov.webade.user.WebADEUserUtils method convertGUIDFormat() instead. |
static java.lang.String |
extractAccountName(java.lang.String userId)
Deprecated. Use ca.bc.gov.webade.user.WebADEUserUtils method extractAccountName() instead. |
static java.lang.String |
extractSourceDirectory(java.lang.String userId)
Deprecated. Use ca.bc.gov.webade.user.WebADEUserUtils method extractSourceDirectory() instead. |
static java.lang.String |
getWebADEVersion()
|
static boolean |
isBlankOrNull(java.lang.String stringValue)
Checks to see if the given string value is an empty string or a null value. |
static boolean |
isInIntegerArray(java.lang.Integer i,
java.lang.Integer[] ia)
Looks for the given Integer in the array. |
static boolean |
isInStringArray(java.lang.String s,
java.lang.String[] sa)
Looks for the given String in the array. |
static java.lang.String |
stripNonNumericCharacters(java.lang.String inputString)
Strips all non-numeric characters from the given String, returning only the numeric string. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DEFAULT_ENCODING
public static final java.lang.String BACKSLASH
public static final java.lang.String FORWARDSLASH
| Constructor Detail |
public WebADEUtils()
| Method Detail |
public static final java.lang.String getWebADEVersion()
public static final java.lang.String convertGUIDFormat(java.lang.String guid)
guid - The guid to convert.
public static final java.lang.String convertBackSlashesToForward(java.lang.String value)
value - The value to convert.
public static final java.lang.String convertForwardSlashesToBack(java.lang.String value)
value - The value to convert.
public static final boolean isInStringArray(java.lang.String s,
java.lang.String[] sa)
s - The target String.sa - The String array.
true if the string s is in the String array sa
public static final boolean isInIntegerArray(java.lang.Integer i,
java.lang.Integer[] ia)
i - The target Integer.ia - The Integer array.
true if the integer i is in the String array iapublic static final java.lang.String extractAccountName(java.lang.String userId)
userId - The user's fully-qualified id.
public static final java.lang.String extractSourceDirectory(java.lang.String userId)
userId - The user's fully-qualified id.
public static final java.lang.String stripNonNumericCharacters(java.lang.String inputString)
inputString -
public static boolean isBlankOrNull(java.lang.String stringValue)
stringValue - The string to test.
public static boolean areEqual(java.lang.String value1,
java.lang.String value2)
value1 - The first string to compare.value2 - The second string to compare.
public static boolean areEqual(java.util.Date value1,
java.util.Date value2)
value1 - The first date to compare.value2 - The second date to compare.
public static boolean areEqual(java.lang.Object value1,
java.lang.Object value2)
value1 - The first object to compare.value2 - The second object to compare.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||