Package org.beanio.types.xml
Class XmlCalendarDateTypeHandler
- java.lang.Object
-
- org.beanio.types.LocaleSupport
-
- org.beanio.types.DateTypeHandlerSupport
-
- org.beanio.types.CalendarTypeHandler
-
- org.beanio.types.xml.AbstractXmlCalendarTypeHandler
-
- org.beanio.types.xml.XmlCalendarDateTypeHandler
-
- All Implemented Interfaces:
java.lang.Cloneable
,ConfigurableTypeHandler
,TypeHandler
public class XmlCalendarDateTypeHandler extends AbstractXmlCalendarTypeHandler
ACalendar
type handler implementation for parsing dates based on the W3C XML Schema date datatype specification.- Since:
- 2.1.0
-
-
Field Summary
-
Fields inherited from class org.beanio.types.xml.AbstractXmlCalendarTypeHandler
dataTypeFactory
-
Fields inherited from class org.beanio.types.DateTypeHandlerSupport
lenient, pattern, timeZone
-
Fields inherited from class org.beanio.types.LocaleSupport
locale
-
Fields inherited from interface org.beanio.types.ConfigurableTypeHandler
FORMAT_SETTING
-
Fields inherited from interface org.beanio.types.TypeHandler
NIL
-
-
Constructor Summary
Constructors Constructor Description XmlCalendarDateTypeHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(java.lang.Object value)
Formats a Java object into field text.protected javax.xml.namespace.QName
getDatatypeQName()
Returns the expected XML Schema data type whenparse
is called.-
Methods inherited from class org.beanio.types.xml.AbstractXmlCalendarTypeHandler
getTimeZoneOffset, isLenientDatatype, isTimeZoneAllowed, newCalendar, parse, setLenientDatatype, setTimeZoneAllowed
-
Methods inherited from class org.beanio.types.CalendarTypeHandler
formatCalendar, getType
-
Methods inherited from class org.beanio.types.DateTypeHandlerSupport
createDateFormat, createDefaultDateFormat, formatDate, getPattern, getTimeZone, getTimeZoneId, isLenient, newInstance, parseDate, setLenient, setPattern, setTimeZoneId
-
Methods inherited from class org.beanio.types.LocaleSupport
getLocale, setLocale
-
-
-
-
Method Detail
-
format
public java.lang.String format(java.lang.Object value)
Description copied from interface:TypeHandler
Formats a Java object into field text.- Specified by:
format
in interfaceTypeHandler
- Specified by:
format
in classAbstractXmlCalendarTypeHandler
- Parameters:
value
- the Java object to format, which may be null- Returns:
- the formatted field text, or
null
to indicate the value is not present, orTypeHandler.NIL
for XML formatted streams
-
getDatatypeQName
protected javax.xml.namespace.QName getDatatypeQName()
Description copied from class:AbstractXmlCalendarTypeHandler
Returns the expected XML Schema data type whenparse
is called.- Specified by:
getDatatypeQName
in classAbstractXmlCalendarTypeHandler
- Returns:
- the expected XML schema data type
QName
-
-