public abstract class SimpleTimeAttrib extends SimpleAttrib<Date>
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_DATE |
static int |
TYPE_DATETIME |
static int |
TYPE_TIME |
Constructor and Description |
---|
SimpleTimeAttrib(OpenEstateAttrib attrib,
int type,
String[] countries) |
Modifier and Type | Method and Description |
---|---|
protected static Date |
get(EstateImpl estate,
OpenEstateAttrib attrib) |
protected static Calendar |
getAsCalendar(EstateImpl estate,
OpenEstateAttrib attrib) |
protected static Long |
getAsLong(EstateImpl estate,
OpenEstateAttrib attrib) |
protected static String |
getAsString(EstateImpl estate,
OpenEstateAttrib attrib) |
protected static String |
getAsString(EstateImpl estate,
OpenEstateAttrib attrib,
Locale locale) |
Date |
getDefaultValue() |
DateFormat |
getFormat() |
DateFormat |
getFormat(Locale locale) |
String |
getFormattedValue(Date value,
Locale locale,
String valueSeparator) |
int |
getType() |
Date |
getValue() |
boolean |
isDate() |
boolean |
isDateTime() |
boolean |
isTime() |
Date |
parseValue(String value) |
protected static void |
put(EstateImpl estate,
OpenEstateAttrib attrib,
Calendar value) |
protected static void |
put(EstateImpl estate,
OpenEstateAttrib attrib,
Date value) |
protected static void |
put(EstateImpl estate,
OpenEstateAttrib attrib,
Long value) |
protected static void |
put(EstateImpl estate,
OpenEstateAttrib attrib,
String value) |
void |
setValue(Date value) |
protected String |
writeValue(Date value) |
readFromXml, serializeToXml
getAttrib, getAttribGroup, getAttribName, getCountries, getFormattedValue, getFormattedValue, getFormattedValue, getFormattedValue, getFormattedValue, getFormattedValue, getFormattedValue, getGroup, getGroupName, getTagName, getTranslation, getTranslation, hasEmptyValue, isCountrySpecific, isCountrySupported
public static final int TYPE_DATE
public static final int TYPE_TIME
public static final int TYPE_DATETIME
public SimpleTimeAttrib(OpenEstateAttrib attrib, int type, String[] countries)
public Date getDefaultValue()
getDefaultValue
in class AbstractAttribImpl<Date>
protected static Date get(EstateImpl estate, OpenEstateAttrib attrib)
protected static Calendar getAsCalendar(EstateImpl estate, OpenEstateAttrib attrib)
protected static Long getAsLong(EstateImpl estate, OpenEstateAttrib attrib)
protected static String getAsString(EstateImpl estate, OpenEstateAttrib attrib)
protected static String getAsString(EstateImpl estate, OpenEstateAttrib attrib, Locale locale)
public final DateFormat getFormat()
public final DateFormat getFormat(Locale locale)
public String getFormattedValue(Date value, Locale locale, String valueSeparator)
getFormattedValue
in class AbstractAttribImpl<Date>
public int getType()
public Date getValue()
getValue
in class AbstractAttribImpl<Date>
public boolean isDate()
public boolean isDateTime()
public boolean isTime()
public final Date parseValue(String value)
parseValue
in class SimpleAttrib<Date>
protected static void put(EstateImpl estate, OpenEstateAttrib attrib, String value)
protected static void put(EstateImpl estate, OpenEstateAttrib attrib, Long value)
protected static void put(EstateImpl estate, OpenEstateAttrib attrib, Calendar value)
protected static void put(EstateImpl estate, OpenEstateAttrib attrib, Date value)
public void setValue(Date value)
setValue
in class AbstractAttribImpl<Date>
protected String writeValue(Date value)
writeValue
in class SimpleAttrib<Date>
Copyright © 2016. All rights reserved.