|
Qizx/open 4.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.qizx.api.util.text.SieveBase
com.qizx.api.util.text.FormatDateSieve
public class FormatDateSieve
DateSieve implementation: uses a DateFormat (by default the short format of the default locale.)
| Field Summary | |
|---|---|
static String |
FORMAT
Name of the parameter used for specifying the format of recognized date values. |
static String |
LENIENT
Name of the parameter used for specifying whether the parsing of date values is lenient. |
static String |
LOCALE
Name of the parameter used for specifying the locale of parsed dates. |
static String |
TIMEZONE
Name of the parameter used for specifying the default time-zone of parsed dates. |
| Constructor Summary | |
|---|---|
FormatDateSieve()
Constructs a sieve that uses the short format of the default locale. |
|
| Method Summary | |
|---|---|
double |
convert(String value)
Attempts to convert the date or date-time contained in the text fragment to a double value (in milliseconds from 1970-01-01 00:00:00 UTC). |
String |
getFormat()
Returns the currently used Date Format. |
void |
setFormat(String dateFormat,
Locale locale)
Sets the format used. |
void |
setParameters(String[] parameters)
Defines optional parameters for the sieve. |
| Methods inherited from class com.qizx.api.util.text.SieveBase |
|---|
addParameter, getParameters, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.qizx.api.Indexing.Sieve |
|---|
getParameters |
| Field Detail |
|---|
public static final String FORMAT
DateFormat.
public static final String LENIENT
public static final String TIMEZONE
TimeZone.getTimeZone(String).
public static final String LOCALE
Locale)
| Constructor Detail |
|---|
public FormatDateSieve()
| Method Detail |
|---|
public void setParameters(String[] parameters)
throws DataModelException
Indexing.Sieve
setParameters in interface Indexing.Sieveparameters - an array of even size containing alternately a
parameter name and a parameter value.
DataModelException - if the option is unknown or the value is
invalid.
public void setFormat(String dateFormat,
Locale locale)
dateFormat - a format accepted by SimpleDateFormatlocale - if not null, the format is adapted to this localepublic String getFormat()
public double convert(String value)
Indexing.DateSieve
convert in interface Indexing.DateSieveconvert in interface Indexing.NumberSievevalue - an alleged date-time value in text form.
|
© 2010 Axyana Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||