public class DateKeySerializer extends AbstractKeySerializer
| Constructor and Description |
|---|
DateKeySerializer() |
DateKeySerializer(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected DateFormat |
getDateFormat() |
int |
getDateStyle()
Get the dete style.
|
void |
serialize(XmlWriter out,
Object object)
Serialize the value to the XML writer.
|
void |
setDateStyle(int dateStyle)
Set the dete style.
|
void |
setDateStyle(String styleName)
Set the name of the style for use by
DateFormat.getDateInstance(int). |
getKey, getLabel, getName, getWidth, setKey, setLabel, setName, setWidth, toStringclearProperties, close, getProperties, getProperty, getProperty, removeProperty, setProperties, setProperty, setPropertySoft, setPropertyWeakclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearProperties, getProperties, getProperty, getProperty, removeProperty, setProperties, setProperty, setPropertySoft, setPropertyWeakpublic DateKeySerializer()
public DateKeySerializer(String name)
protected DateFormat getDateFormat()
public int getDateStyle()
public void serialize(XmlWriter out, Object object)
out - The XML writer to serialize to.object - The object to get the value from.public void setDateStyle(int dateStyle)
dateStyle - The date style.public void setDateStyle(String styleName)
DateFormat.getDateInstance(int).styleName - The name of the date format style;Copyright © 2015 Revolution Systems Inc.. All rights reserved.