|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.util.DataTypes
public class DataTypes
Created: May 28, 2009 7:39:07 AM
| Field Summary | |
|---|---|
static Map<String,Character> |
typesMap
Field description |
| Constructor Summary | |
|---|---|
DataTypes()
|
|
| Method Summary | ||
|---|---|---|
static char |
decodeTypeIdFromName(String name)
Method description |
|
static Object |
decodeValueType(char typeId,
String value)
Method description |
|
static String |
encodeTypeIdInName(String name,
Object value)
Method description |
|
static boolean |
getProperty(String key,
Boolean def)
Method description |
|
static char |
getTypeId(Object instance)
Method description |
|
static boolean |
parseBool(String val)
Method description |
|
static
|
parseNum(String num,
Class<T> cls,
T def)
Method description |
|
static int |
parseSizeInt(String size,
int def)
Method description |
|
static String |
stripNameFromTypeId(String name)
Method description |
|
static String |
valueToString(Object value)
Method description |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Map<String,Character> typesMap
| Constructor Detail |
|---|
public DataTypes()
| Method Detail |
|---|
public static <T extends Number> T parseNum(String num,
Class<T> cls,
T def)
T - num - cls - def -
public static int parseSizeInt(String size,
int def)
size - def -
public static boolean parseBool(String val)
val -
public static Object decodeValueType(char typeId,
String value)
throws IllegalArgumentException
typeId - value -
IllegalArgumentExceptionpublic static String valueToString(Object value)
value -
public static char decodeTypeIdFromName(String name)
name -
public static String stripNameFromTypeId(String name)
name -
public static String encodeTypeIdInName(String name,
Object value)
name - value -
public static char getTypeId(Object instance)
instance -
public static boolean getProperty(String key,
Boolean def)
key - def -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||