|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cubeengine.converter.converter.SimpleConverter<ConvertT>
public abstract class SimpleConverter<ConvertT>
A simple Converter for a single Class
| Constructor Summary | |
|---|---|
SimpleConverter()
|
|
| Method Summary | |
|---|---|
abstract ConvertT |
fromNode(Node node)
Converts the node back into the original object |
ConvertT |
fromNode(Node node,
Class<? extends ConvertT> type,
ConverterManager manager)
Converts the node back into the original object |
abstract Node |
toNode(ConvertT object)
Converts the object into a serializable Node |
Node |
toNode(ConvertT object,
ConverterManager manager)
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 |
| Constructor Detail |
|---|
public SimpleConverter()
| Method Detail |
|---|
public final Node toNode(ConvertT object,
ConverterManager manager)
throws ConversionException
Converter
toNode in interface Converter<ConvertT,Class<? extends ConvertT>>object - the object to convertmanager - the ConverterManager
ConversionException
public final ConvertT fromNode(Node node,
Class<? extends ConvertT> type,
ConverterManager manager)
throws ConversionException
Converter
fromNode in interface Converter<ConvertT,Class<? extends ConvertT>>node - the node to converttype - the type to convert tomanager - the manager
ConversionException
public abstract Node toNode(ConvertT object)
throws ConversionException
object - the object to convert
ConversionException
public abstract ConvertT fromNode(Node node)
throws ConversionException
node - the node to convert
ConversionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||