EspressReport 6.6

quadbase.common.util.internal
Class XMLDataTypeUtil

java.lang.Object
  extended by quadbase.common.util.internal.XMLDataTypeUtil

public class XMLDataTypeUtil
extends java.lang.Object


Field Summary
static java.lang.String[] DATETYPE
           
static java.lang.String DD_MM_YY
          Date format "DD-MM-YY"
static java.lang.String DD_MM_YYYY
          Date format "DD-MM-YYYY"
static java.lang.String DDMMYY
          Date format "DD/MM/YY"
static java.lang.String DDMMYYYY
          Date format "DD/MM/YYYY"
static java.lang.String MM_DD_YY
          Date format "MM-DD-YY"
static java.lang.String MM_DD_YYYY
          Date format "MM-DD-YYYY"
static java.lang.String MMDDYY
          Date format "MM/DD/YY"
static java.lang.String MMDDYYYY
          Date format "MM/DD/YYYY"
static java.lang.String YY_MM_DD
          Date format "YY-MM-DD"
static java.lang.String YYMMDD
          Date format "YY/MM/DD"
static java.lang.String YYYY_MM_DD
          Date format "YYYY-MM-DD"
static java.lang.String YYYYMMDD
          Date format "YYYY/MM/DD"
 
Constructor Summary
XMLDataTypeUtil()
           
 
Method Summary
static java.util.Date getDate(java.lang.String str, java.lang.String format, int dataType)
          A static method to return a data object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MM_DD_YYYY

public static final java.lang.String MM_DD_YYYY
Date format "MM-DD-YYYY"

See Also:
Constant Field Values

MMDDYYYY

public static final java.lang.String MMDDYYYY
Date format "MM/DD/YYYY"

See Also:
Constant Field Values

YYYY_MM_DD

public static final java.lang.String YYYY_MM_DD
Date format "YYYY-MM-DD"

See Also:
Constant Field Values

YYYYMMDD

public static final java.lang.String YYYYMMDD
Date format "YYYY/MM/DD"

See Also:
Constant Field Values

DD_MM_YYYY

public static final java.lang.String DD_MM_YYYY
Date format "DD-MM-YYYY"

See Also:
Constant Field Values

DDMMYYYY

public static final java.lang.String DDMMYYYY
Date format "DD/MM/YYYY"

See Also:
Constant Field Values

MM_DD_YY

public static final java.lang.String MM_DD_YY
Date format "MM-DD-YY"

See Also:
Constant Field Values

MMDDYY

public static final java.lang.String MMDDYY
Date format "MM/DD/YY"

See Also:
Constant Field Values

YY_MM_DD

public static final java.lang.String YY_MM_DD
Date format "YY-MM-DD"

See Also:
Constant Field Values

YYMMDD

public static final java.lang.String YYMMDD
Date format "YY/MM/DD"

See Also:
Constant Field Values

DD_MM_YY

public static final java.lang.String DD_MM_YY
Date format "DD-MM-YY"

See Also:
Constant Field Values

DDMMYY

public static final java.lang.String DDMMYY
Date format "DD/MM/YY"

See Also:
Constant Field Values

DATETYPE

public static final java.lang.String[] DATETYPE
Constructor Detail

XMLDataTypeUtil

public XMLDataTypeUtil()
Method Detail

getDate

public static java.util.Date getDate(java.lang.String str,
                                     java.lang.String format,
                                     int dataType)
A static method to return a data object

Parameters:
str - , a string represent of the Date object
format - , the format that the input string uses
dataType - , 3 types, Date, Time or TimeStamp
Returns:
a jav.util.Date object

EspressReport 6.6