Enum Class BasicType

java.lang.Object
java.lang.Enum<BasicType>
org.jboss.jca.codegenerator.BasicType
All Implemented Interfaces:
Serializable, Comparable<BasicType>, java.lang.constant.Constable

public enum BasicType extends Enum<BasicType>
A BasicType.
Version:
$Revision: $
Author:
Jeff Zhang
  • Enum Constant Details

    • 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 Details

    • values

      public static BasicType[] 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

      public static BasicType valueOf(String name)
      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 name
      NullPointerException - 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
    • defaultValue

      public static String defaultValue(String type)
      return default value string
      Parameters:
      type - type string
      Returns:
      String all types