org.xerial.util.bean
Class TypeInformation
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeInformation
public TypeInformation()
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

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