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