Class DateFormat
- java.lang.Object
-
- com.vmware.vipclient.i18n.l2.text.DateFormat
-
- Direct Known Subclasses:
RegionDateFormat,SimpleDateFormat
public abstract class DateFormat extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intDATEstatic intDATETIMEstatic StringDEFAULTConstant for default style pattern.static StringFULLConstant for full style pattern.static StringLONGConstant for long style pattern.static StringMEDIUMConstant for medium style pattern.static intNONEConstant for empty style pattern.static StringSHORTConstant for short style pattern.static intTIME
-
Constructor Summary
Constructors Constructor Description DateFormat()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Stringformat(Object obj, String timeZone)abstract Stringformat(Date date, String timeZone)DategetDateByString(String dateStr)static DateFormatgetInstance(org.json.JSONObject formatData, String format, String locale)static DateFormatgetInstance(org.json.JSONObject formatData, String format, String language, String region)static StringgetPattern(org.json.JSONObject formatData, String format)booleanisNumeric(String str)DateIsoToDate(String isoDateStr)DateparseStr2Date(String str)
-
-
-
Field Detail
-
DATETIME
public static final int DATETIME
- See Also:
- Constant Field Values
-
DATE
public static final int DATE
- See Also:
- Constant Field Values
-
TIME
public static final int TIME
- See Also:
- Constant Field Values
-
NONE
public static final int NONE
Constant for empty style pattern.- See Also:
- Constant Field Values
-
FULL
public static final String FULL
Constant for full style pattern.- See Also:
- Constant Field Values
-
LONG
public static final String LONG
Constant for long style pattern.- See Also:
- Constant Field Values
-
MEDIUM
public static final String MEDIUM
Constant for medium style pattern.- See Also:
- Constant Field Values
-
SHORT
public static final String SHORT
Constant for short style pattern.- See Also:
- Constant Field Values
-
DEFAULT
public static final String DEFAULT
Constant for default style pattern. Its value is MEDIUM.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static DateFormat getInstance(org.json.JSONObject formatData, String format, String locale)
-
getInstance
public static DateFormat getInstance(org.json.JSONObject formatData, String format, String language, String region)
-
isNumeric
public boolean isNumeric(String str)
-
-