org.teleal.cling.model.types
Class DateTimeDatatype
java.lang.Object
org.teleal.cling.model.types.AbstractDatatype<Date>
org.teleal.cling.model.types.DateTimeDatatype
- All Implemented Interfaces:
- Datatype<Date>
public class DateTimeDatatype
- extends AbstractDatatype<Date>
readFormats
protected String[] readFormats
writeFormat
protected String writeFormat
DateTimeDatatype
public DateTimeDatatype(String[] readFormats,
String writeFormat)
fromString
public Date fromString(String s)
throws InvalidValueException
- Throws:
InvalidValueException
getString
public String getString(Date value)
throws InvalidValueException
- Specified by:
getString
in interface Datatype<Date>
- Overrides:
getString
in class AbstractDatatype<Date>
- Throws:
InvalidValueException
normalizeTimeZone
protected String normalizeTimeZone(String value)
getDateValue
protected Date getDateValue(String value,
String[] formats)
getTimeZone
protected TimeZone getTimeZone()
getDefaultValue
public Date getDefaultValue()
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.