BeanIO 1.2.3

org.beanio.types.xml
Class XmlDateTypeHandler

java.lang.Object
  extended by org.beanio.types.DateTypeHandler
      extended by org.beanio.types.xml.AbstractXmlDateTypeHandler
          extended by org.beanio.types.xml.XmlDateTypeHandler
All Implemented Interfaces:
ConfigurableTypeHandler, TypeHandler

public class XmlDateTypeHandler
extends AbstractXmlDateTypeHandler

A java.util.Date type handler implementation for parsing dates based on the W3C XML Schema date datatype specification.

Since:
1.1
Author:
Kevin Seim

Field Summary
 
Fields inherited from class org.beanio.types.xml.AbstractXmlDateTypeHandler
dataTypeFactory
 
Fields inherited from interface org.beanio.types.ConfigurableTypeHandler
FORMAT_SETTING
 
Fields inherited from interface org.beanio.types.TypeHandler
NIL
 
Constructor Summary
XmlDateTypeHandler()
          Constructs a new XmlDateTypeHandler.
 
Method Summary
 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.
 
Methods inherited from class org.beanio.types.xml.AbstractXmlDateTypeHandler
getTimeZoneId, getTimeZoneOffset, isLenientDatatype, isTimeZoneAllowed, newCalendar, parse, setLenientDatatype, setTimeZoneAllowed, setTimeZoneId
 
Methods inherited from class org.beanio.types.DateTypeHandler
createDateFormat, createDefaultDateFormat, getPattern, getType, isLenient, newInstance, setLenient, setPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDateTypeHandler

public XmlDateTypeHandler()
Constructs a new XmlDateTypeHandler.

Method Detail

format

public String format(Object value)
Description copied from interface: TypeHandler
Formats a Java object into field text.

Specified by:
format in interface TypeHandler
Specified by:
format in class AbstractXmlDateTypeHandler
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, or TypeHandler.NIL for XML formatted streams

getDatatypeQName

protected QName getDatatypeQName()
Description copied from class: AbstractXmlDateTypeHandler
Returns the expected XML Schema data type when parse is called.

Specified by:
getDatatypeQName in class AbstractXmlDateTypeHandler
Returns:
the expected XML schema data type QName

BeanIO 1.2.3

Copyright © 2010-2012 Kevin Seim