org.xerial.util.bean
Class TypeInformation

java.lang.Object
  extended by org.xerial.util.bean.TypeInformation

public class TypeInformation
extends Object

BasicType class holds information of standard types that can be directly assignable as Bean parameter values. For example, int/Integer, double/Double, String, etc. and their arrays are basic types.

Author:
leo

Constructor Summary
TypeInformation()
           
 
Method Summary
static boolean canInstantiate(Class c)
           
static Object createInstance(Class c)
           
static boolean hasPublicConstructor(Class c)
           
static boolean isBasicType(Class c)
           
static boolean isCollection(Class c)
           
static boolean isDOMElement(Class c)
           
static boolean isMap(Class c)
           
static boolean isSet(Class c)
           
static boolean isSortedMap(Class c)
           
static boolean isSortedSet(Class c)
           
static boolean isString(Class c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeInformation

public TypeInformation()
Method Detail

isBasicType

public static boolean isBasicType(Class c)
Parameters:
c -
Returns:
true : if a given class is a single class or array of int, double, float, boolean, String, Integer, Double, Float or Boolean. otherwise false.

isCollection

public static boolean isCollection(Class c)

isSet

public static boolean isSet(Class c)

isSortedSet

public static boolean isSortedSet(Class c)

isSortedMap

public static boolean isSortedMap(Class c)

isMap

public static boolean isMap(Class c)

isString

public static boolean isString(Class c)

isDOMElement

public static boolean isDOMElement(Class c)

hasPublicConstructor

public static boolean hasPublicConstructor(Class c)

canInstantiate

public static boolean canInstantiate(Class c)

createInstance

public static Object createInstance(Class c)
                             throws BeanException
Throws:
BeanException


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.