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