org.cubeengine.converter.converter
Class SingleClassConverter<ConvertT>
java.lang.Object
org.cubeengine.converter.converter.SingleClassConverter<ConvertT>
- Type Parameters:
ConvertT -
- All Implemented Interfaces:
- ClassedConverter<ConvertT>, Converter<ConvertT,Class<? extends ConvertT>>
public abstract class SingleClassConverter<ConvertT>
- extends Object
- implements ClassedConverter<ConvertT>
A converter for a single Class
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.cubeengine.converter.converter.Converter |
toNode |
SingleClassConverter
public SingleClassConverter()
fromNode
public final ConvertT fromNode(Node node,
Class<? extends ConvertT> type,
ConverterManager manager)
throws ConversionException
- Description copied from interface:
Converter
- Converts the node back into the original object
- Specified by:
fromNode in interface Converter<ConvertT,Class<? extends ConvertT>>
- Parameters:
node - the node to converttype - the type to convert tomanager - the manager
- Returns:
- the converted node
- Throws:
ConversionException
fromNode
public abstract ConvertT fromNode(Node node,
ConverterManager manager)
throws ConversionException
- Converts the node back into the original object
- Parameters:
node - the node to convertmanager - the ConverterManager
- Returns:
- the converted node
- Throws:
ConversionException
Copyright © 2013–2017. All rights reserved.