org.cubeengine.converter.converter
Class ClassConverter
java.lang.Object
org.cubeengine.converter.converter.SimpleConverter<Class<?>>
org.cubeengine.converter.converter.ClassConverter
- All Implemented Interfaces:
- ClassedConverter<Class<?>>, Converter<Class<?>,Class<? extends Class<?>>>
public class ClassConverter
- extends SimpleConverter<Class<?>>
|
Method Summary |
Class<?> |
fromNode(Node node)
Converts the node back into the original object |
Node |
toNode(Class<?> 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 |
ClassConverter
public ClassConverter()
toNode
public Node toNode(Class<?> object)
throws ConversionException
- Description copied from class:
SimpleConverter
- Converts the object into a serializable Node
- Specified by:
toNode in class SimpleConverter<Class<?>>
- Parameters:
object - the object to convert
- Returns:
- the converted object
- Throws:
ConversionException
fromNode
public Class<?> fromNode(Node node)
throws ConversionException
- Description copied from class:
SimpleConverter
- Converts the node back into the original object
- Specified by:
fromNode in class SimpleConverter<Class<?>>
- Parameters:
node - the node to convert
- Returns:
- the converted node
- Throws:
ConversionException
Copyright © 2013–2017. All rights reserved.