public class XmlTimeTypeHandler extends AbstractXmlDateTypeHandler
dataTypeFactory
lenient, pattern, timeZone
locale
FORMAT_SETTING
NIL
Constructor and Description |
---|
XmlTimeTypeHandler()
Constructs a new XmlTimeTypeHandler.
|
Modifier and Type | Method and Description |
---|---|
String |
format(Object value)
Formats a Java object into field text.
|
protected QName |
getDatatypeQName()
Returns the expected XML Schema data type when parse is called.
|
boolean |
isOutputMilliseconds()
Returns whether milliseconds are included when formatting the time.
|
void |
setOutputMilliseconds(boolean b)
Sets whether milliseconds are included when formatting the time.
|
getTimeZoneOffset, isLenientDatatype, isTimeZoneAllowed, newCalendar, parse, setLenientDatatype, setTimeZoneAllowed
getType
createDateFormat, createDefaultDateFormat, formatDate, getPattern, getTimeZone, getTimeZoneId, isLenient, newInstance, parseDate, setLenient, setPattern, setTimeZoneId
getLocale, setLocale
public XmlTimeTypeHandler()
public String format(Object value)
TypeHandler
format
in interface TypeHandler
format
in class AbstractXmlDateTypeHandler
value
- the Java object to format, which may be nullTypeHandler.NIL
for XML formatted streamsprotected QName getDatatypeQName()
AbstractXmlDateTypeHandler
getDatatypeQName
in class AbstractXmlDateTypeHandler
public boolean isOutputMilliseconds()
public void setOutputMilliseconds(boolean b)
b
- set to true to include milliseconds when formatting the time