| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.persistence.db
public class DataUtil
Validates data format
| Field Summary |
private final static String |
|
private final static String |
|
| Method Summary |
public static String |
|
public static int |
|
public static boolean |
|
public static boolean |
|
public static boolean |
|
public static boolean |
|
public static boolean |
|
public static boolean |
|
public static boolean |
|
public static boolean |
|
public static int[] |
|
private final static String INVALID_HTTP_CHAR_SET
Final.
Multiplicity:
1
Static.
private final static String NUMBER_SET
Final.
Multiplicity:
1
Static.
public static String collectionToStringArray (Collection col)
Converts a Collection of String objects to an array of String objects.
Static.
public static int compareOctets (String a, String b)
Compares two series of octets given as Strings. The comparison is done
by comparing the numerically the octets from left to right, e.g.
1.2.4 is smaller than 1.2.11. Returns 0 if a and b are equal, negative
integer if a is less than b and positive integer if a is larger than b.
An empty octects String is considered smaller than a non-empty octets
String. This can be used for IP address and point code.
Static.
public static boolean hasValue (String str)
checks if a String has a non-empty value. Returns false if the String is null or empty
Static.
public static boolean isEmpty (String str)
Static.
public static boolean isIpAddress (String ipAddress)
Static.
public static boolean isNumber (String number)
Validates if a string is a non-negative number.
Static.
public static boolean isNumber (Character c)
Validates if a character is a number.
Static.
public static boolean isPointCode (String pointCode)
Static.
public static boolean isValidHttpChar (Character c)
Static.
public static boolean isValidHttpString (String str)
Static.
public static int[] splitOctets (String octets)
Splits a series of octets aaa.bbb.ccc into an array of numbers aaa, bbb
and ccc. This can be used for IP address and point code.
Static.
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|