Package org.jboss.jca.codegenerator
Enum BasicType
- java.lang.Object
-
- java.lang.Enum<BasicType>
-
- org.jboss.jca.codegenerator.BasicType
-
- All Implemented Interfaces:
Serializable,Comparable<BasicType>
public enum BasicType extends Enum<BasicType>
A BasicType.- Version:
- $Revision: $
- Author:
- Jeff Zhang
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringallBasicType()return string include all basic typesstatic StringallType()return string include all basic and primitive typesstatic StringdefaultValue(String type)return default value stringstatic booleanisBasicType(String type)is basic typestatic booleanisPrimitiveType(String type)is primitive typestatic BasicTypevalueOf(String name)Returns the enum constant of this type with the specified name.static BasicType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
String
public static final BasicType String
string
-
Boolean
public static final BasicType Boolean
boolean
-
Integer
public static final BasicType Integer
integer
-
Double
public static final BasicType Double
double
-
Byte
public static final BasicType Byte
bye
-
Short
public static final BasicType Short
short
-
Long
public static final BasicType Long
long
-
Float
public static final BasicType Float
float
-
Character
public static final BasicType Character
char
-
-
Method Detail
-
values
public static BasicType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BasicType c : BasicType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BasicType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isBasicType
public static boolean isBasicType(String type)
is basic type- Parameters:
type- type string- Returns:
- boolean true if basic type
-
isPrimitiveType
public static boolean isPrimitiveType(String type)
is primitive type- Parameters:
type- type string- Returns:
- boolean true if basic type
-
allBasicType
public static String allBasicType()
return string include all basic types- Returns:
- String all types
-
allType
public static String allType()
return string include all basic and primitive types- Returns:
- String all types
-
-