tigase.util
Class DataTypes

java.lang.Object
  extended by tigase.util.DataTypes

public class DataTypes
extends Object

Created: May 28, 2009 7:39:07 AM

Version:
$Rev$
Author:
Artur Hefczyc

Field Summary
static Map<String,Character> typesMap
           
 
Constructor Summary
DataTypes()
           
 
Method Summary
static Object decodeValueType(char typeId, String value)
           
static char getTypeId(Object instance)
           
static boolean parseBool(String val)
           
static int parseSizeInt(String size, int def)
           
static String valueToString(Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typesMap

public static final Map<String,Character> typesMap
Constructor Detail

DataTypes

public DataTypes()
Method Detail

parseSizeInt

public static int parseSizeInt(String size,
                               int def)

parseBool

public static boolean parseBool(String val)

decodeValueType

public static Object decodeValueType(char typeId,
                                     String value)
                              throws IllegalArgumentException
Throws:
IllegalArgumentException

valueToString

public static String valueToString(Object value)

getTypeId

public static char getTypeId(Object instance)


Copyright © 2001-2006 Tigase Developers Team. All rights Reserved.