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) |
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 © 2019 OpenEstate. All rights reserved.