Package org.jboss.jca.codegenerator
Enum Class BasicType
- All Implemented Interfaces:
Serializable,Comparable<BasicType>,java.lang.constant.Constable
A BasicType.
- Version:
- $Revision: $
- Author:
- Jeff Zhang
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringreturn 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 BasicTypeReturns the enum constant of this class with the specified name.static BasicType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
String
string -
Boolean
boolean -
Integer
integer -
Double
double -
Byte
bye -
Short
short -
Long
long -
Float
float -
Character
char
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isBasicType
is basic type- Parameters:
type- type string- Returns:
- boolean true if basic type
-
isPrimitiveType
is primitive type- Parameters:
type- type string- Returns:
- boolean true if basic type
-
allBasicType
return string include all basic types- Returns:
- String all types
-
allType
return string include all basic and primitive types- Returns:
- String all types
-
defaultValue
return default value string- Parameters:
type- type string- Returns:
- String all types
-