org.cubeengine.converter.converter
Class DateConverter
java.lang.Object
org.cubeengine.converter.converter.SimpleConverter<Date>
org.cubeengine.converter.converter.DateConverter
- All Implemented Interfaces:
- ClassedConverter<Date>, Converter<Date,Class<? extends Date>>
public class DateConverter
- extends SimpleConverter<Date>
A Converter for Date
|
Method Summary |
Date |
fromNode(Node node)
Converts the node back into the original object |
Node |
toNode(Date object)
Converts the object into a serializable Node |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateConverter
public DateConverter()
toNode
public Node toNode(Date object)
throws ConversionException
- Description copied from class:
SimpleConverter
- Converts the object into a serializable Node
- Specified by:
toNode in class SimpleConverter<Date>
- Parameters:
object - the object to convert
- Returns:
- the converted object
- Throws:
ConversionException
fromNode
public Date fromNode(Node node)
throws ConversionException
- Description copied from class:
SimpleConverter
- Converts the node back into the original object
- Specified by:
fromNode in class SimpleConverter<Date>
- Parameters:
node - the node to convert
- Returns:
- the converted node
- Throws:
ConversionException
Copyright © 2013–2017. All rights reserved.