public class GenericTypeHelper extends java.lang.Object implements ITypeHelper
ITypeHelper wraps ITypeHelper and delegates the
calls to it.| Constructor and Description |
|---|
GenericTypeHelper(TypeHelper delegate)
Creates a new
GenericTypeHelper. |
public GenericTypeHelper(TypeHelper delegate)
GenericTypeHelper.delegate - The TypeHelper that is wrapped by this one and all the calls are
delegated to itpublic IType bigDecimal()
bigDecimal in interface ITypeHelperBigDecimal classpublic IType bigInteger()
bigInteger in interface ITypeHelperBigInteger classpublic IType booleanType()
booleanType in interface ITypeHelperBoolean classpublic IType byteType()
byteType in interface ITypeHelperByte classpublic IType characterType()
characterType in interface ITypeHelperCharacter classpublic IType collectionType()
collectionType in interface ITypeHelperCollection classpublic IType convertPrimitive(java.lang.Object type)
convertPrimitive in interface ITypeHelpertype - Type to possibly convert from the primitive into the classpublic IType dateType()
dateType in interface ITypeHelperDate classpublic IType doubleType()
doubleType in interface ITypeHelperDouble classpublic IType enumType()
enumType in interface ITypeHelperEnum classpublic IType floatType()
floatType in interface ITypeHelperFloat classpublic IType getType(java.lang.Class<?> type)
getType in interface ITypeHelpertype - The Java type for which its external form will be returnedpublic IType getType(java.lang.String typeName)
getType in interface ITypeHelpertypeName - The fully qualified class name of the class to retrievepublic IType integerType()
integerType in interface ITypeHelperInteger classpublic boolean isBooleanType(java.lang.Object type)
isBooleanType in interface ITypeHelpertype - The type to check it's assignabilitytrue if the given;@link IType} is a;@link Boolean}; false
otherwisepublic boolean isCollectionType(java.lang.Object type)
isCollectionType in interface ITypeHelpertype - The type to check it's assignabilitytrue if the given;@link IType} is an instance of;@link Collection};
false otherwisepublic boolean isDateType(java.lang.Object type)
isDateType in interface ITypeHelpertype - The type to check it's assignabilitytrue if the given;@link IType} is a;@link Date},;@link Timestamp} or
;@link Calendar}public boolean isEnumType(java.lang.Object type)
isEnumType in interface ITypeHelpertype - The type to check it's assignabilitytrue if the given;@link IType} is an instance of;@link Enum};
false otherwisepublic boolean isFloatingType(java.lang.Object type)
isFloatingType in interface ITypeHelpertype - The type to check it's assignabilitytrue if the given;@link IType} is a floating type; false
otherwisepublic boolean isIntegralType(java.lang.Object type)
isIntegralType in interface ITypeHelpertype - The type to check it's assignabilitytrue if the given;@link IType} is a integral type; false
otherwisepublic boolean isMapType(java.lang.Object type)
isMapType in interface ITypeHelpertype - The type to check it's assignabilitytrue if the given;@link IType} is an instance of;@link Map};
false otherwisepublic boolean isNumericType(java.lang.Object type)
isNumericType in interface ITypeHelpertype - The type to check it's assignabilitytrue if the given;@link IType} is an instance of;@link Numeric};
false otherwisepublic boolean isObjectType(java.lang.Object type)
isObjectType in interface ITypeHelpertype - The type to check it's assignabilitytrue if the given;@link IType} is the external form of;@link Object}public boolean isPrimitiveType(java.lang.Object type)
isPrimitiveType in interface ITypeHelpertype - The type to check it's assignabilitytrue if the given;@link IType} represents a primitive; false
otherwisepublic boolean isStringType(java.lang.Object type)
isStringType in interface ITypeHelpertype - The type to check it's assignabilitytrue if the given;@link IType} represents the String class;
false otherwisepublic IType longType()
longType in interface ITypeHelperLong classpublic IType longType(java.lang.Object type)
longType in interface ITypeHelpertype - The;@link IType} to possibly convertLongpublic IType mapType()
mapType in interface ITypeHelperMap classpublic IType numberType()
numberType in interface ITypeHelperNumber classpublic IType objectType()
objectType in interface ITypeHelperObject classpublic ITypeDeclaration objectTypeDeclaration()
objectTypeDeclaration in interface ITypeHelperObject classpublic IType primitiveBoolean()
primitiveBoolean in interface ITypeHelperpublic IType primitiveByte()
primitiveByte in interface ITypeHelperpublic IType primitiveChar()
primitiveChar in interface ITypeHelperpublic IType primitiveDouble()
primitiveDouble in interface ITypeHelperpublic IType primitiveFloat()
primitiveFloat in interface ITypeHelperpublic IType primitiveInteger()
primitiveInteger in interface ITypeHelperpublic IType primitiveLong()
primitiveLong in interface ITypeHelperpublic IType primitiveShort()
primitiveShort in interface ITypeHelperpublic IType shortType()
shortType in interface ITypeHelperShort classpublic IType stringType()
stringType in interface ITypeHelperString classpublic IType timestampType()
timestampType in interface ITypeHelperTimestamp classpublic IType toBooleanType(java.lang.Object type)
toBooleanType in interface ITypeHelpertype - The;@link IType} to possibly convertBooleanpublic IType toByteType(java.lang.Object type)
toByteType in interface ITypeHelpertype - The;@link IType} to possibly convertBytepublic IType toDoubleType(java.lang.Object type)
toDoubleType in interface ITypeHelpertype - The;@link IType} to possibly convertDoublepublic IType toFloatType(java.lang.Object type)
toFloatType in interface ITypeHelpertype - The;@link IType} to possibly convertFloatpublic IType toIntegerType(java.lang.Object type)
toIntegerType in interface ITypeHelpertype - The;@link IType} to possibly convertIntegerpublic IType toShortType(java.lang.Object type)
toShortType in interface ITypeHelpertype - The;@link IType} to possibly convertShortpublic IType unknownType()
unknownType in interface ITypeHelperpublic ITypeDeclaration unknownTypeDeclaration()
unknownTypeDeclaration in interface ITypeHelper