goldengate.common.xml
Enum XmlType

java.lang.Object
  extended by java.lang.Enum<XmlType>
      extended by goldengate.common.xml.XmlType
All Implemented Interfaces:
Serializable, Comparable<XmlType>

public enum XmlType
extends Enum<XmlType>

Type of Classes supported in Enum type

Author:
Frederic Bregier

Enum Constant Summary
BOOLEAN
           
BYTE
           
CHARACTER
           
DOUBLE
           
EMPTY
           
FLOAT
           
INTEGER
           
LONG
           
SHORT
           
SQLDATE
           
STRING
           
TIMESTAMP
           
XVAL
           
 
Field Summary
 Class<?> classType
           
 
Method Summary
 Class<?> getClassType()
           
 boolean isBoolean()
           
 boolean isByte()
           
 boolean isCharacter()
           
 boolean isDate()
           
 boolean isDouble()
           
 boolean isEmpty()
           
 boolean isFloat()
           
 boolean isInteger()
           
 boolean isLong()
           
 boolean isNativelyCompatible(Object value)
           
 boolean isShort()
           
 boolean isString()
           
 boolean isTimestamp()
           
 boolean isXmlValue()
           
static XmlType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static XmlType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BOOLEAN

public static final XmlType BOOLEAN

INTEGER

public static final XmlType INTEGER

FLOAT

public static final XmlType FLOAT

CHARACTER

public static final XmlType CHARACTER

BYTE

public static final XmlType BYTE

LONG

public static final XmlType LONG

DOUBLE

public static final XmlType DOUBLE

SHORT

public static final XmlType SHORT

SQLDATE

public static final XmlType SQLDATE

TIMESTAMP

public static final XmlType TIMESTAMP

STRING

public static final XmlType STRING

XVAL

public static final XmlType XVAL

EMPTY

public static final XmlType EMPTY
Field Detail

classType

public Class<?> classType
Method Detail

values

public static XmlType[] 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 (XmlType c : XmlType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static XmlType 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 name
NullPointerException - if the argument is null

getClassType

public Class<?> getClassType()
Returns:
the associated Native Java class

isNativelyCompatible

public boolean isNativelyCompatible(Object value)
Parameters:
value -
Returns:
True if the Object is natively compatible with the internal Type

isBoolean

public boolean isBoolean()

isInteger

public boolean isInteger()

isFloat

public boolean isFloat()

isCharacter

public boolean isCharacter()

isByte

public boolean isByte()

isLong

public boolean isLong()

isDouble

public boolean isDouble()

isShort

public boolean isShort()

isDate

public boolean isDate()

isTimestamp

public boolean isTimestamp()

isString

public boolean isString()

isXmlValue

public boolean isXmlValue()

isEmpty

public boolean isEmpty()


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.