public class XSDDateEncoder extends SimpleTypeEncoderBase
| Modifier and Type | Field and Description |
|---|---|
protected static SimpleDateFormat |
dateFormatter |
protected static TimeZone |
gmtTimeZone |
protected static Locale |
locale |
| Modifier | Constructor and Description |
|---|---|
protected |
XSDDateEncoder() |
| Modifier and Type | Method and Description |
|---|---|
static SimpleTypeEncoder |
getInstance() |
String |
objectToString(Object obj,
XMLWriter writer) |
Object |
stringToObject(String str,
XMLReader reader) |
static void |
validateDateStr(String dateStr) |
writeAdditionalNamespaceDeclarations, writeValueprotected static final Locale locale
protected static final SimpleDateFormat dateFormatter
protected static final TimeZone gmtTimeZone
public static SimpleTypeEncoder getInstance()
public String objectToString(Object obj, XMLWriter writer) throws Exception
objectToString in interface SimpleTypeEncoderobjectToString in class SimpleTypeEncoderBaseExceptionpublic Object stringToObject(String str, XMLReader reader) throws Exception
stringToObject in interface SimpleTypeEncoderstringToObject in class SimpleTypeEncoderBaseExceptionCopyright © 2017–2019 Eclipse Foundation. All rights reserved.