org.hops.util
Class date_format
java.lang.Object
org.hops.util.date_format
- All Implemented Interfaces:
- java.io.Serializable
public class date_format
- extends java.lang.Object
- implements java.io.Serializable
- Author:
- mgonzalez
- See Also:
- Serialized Form
Method Summary |
void |
addValue(java.lang.String key,
java.lang.String value)
Adds a value to the date information |
static java.lang.String |
CreateDate(java.lang.String rel_date)
returns a new relative date |
java.util.Date[] |
getDate()
returns a java Date using the information added |
static java.lang.String |
getFormat(java.lang.String lang)
|
boolean |
isEmpty()
Check if there are no keys |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HOPSDATEFORMAT
public static final java.lang.String HOPSDATEFORMAT
- See Also:
- Constant Field Values
VOICESIMPLEDATEFORMAT
public static final java.lang.String VOICESIMPLEDATEFORMAT
- See Also:
- Constant Field Values
ENSIMPLEDATEFORMAT
public static final java.lang.String ENSIMPLEDATEFORMAT
- See Also:
- Constant Field Values
CASIMPLEDATEFORMAT
public static final java.lang.String CASIMPLEDATEFORMAT
- See Also:
- Constant Field Values
ESSIMPLEDATEFORMAT
public static final java.lang.String ESSIMPLEDATEFORMAT
- See Also:
- Constant Field Values
ITSIMPLEDATEFORMAT
public static final java.lang.String ITSIMPLEDATEFORMAT
- See Also:
- Constant Field Values
date_format
public date_format()
getFormat
public static java.lang.String getFormat(java.lang.String lang)
CreateDate
public static java.lang.String CreateDate(java.lang.String rel_date)
- returns a new relative date
isEmpty
public boolean isEmpty()
- Check if there are no keys
- Returns:
- true if there is not information about the date to transform
addValue
public void addValue(java.lang.String key,
java.lang.String value)
- Adds a value to the date information
- Parameters:
key
- what the value represents: day, month, yearvalue
- the value
getDate
public java.util.Date[] getDate()
- returns a java Date using the information added
- Returns:
- the Date