|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cubeengine.converter.converter.generic.MapConverter
public class MapConverter
Converts MapNode to Map and vice versa
| Constructor Summary | |
|---|---|
MapConverter()
|
|
| Method Summary | |
|---|---|
Map |
fromNode(Node node,
ParameterizedType ptype,
ConverterManager manager)
Converts the node back into the original object |
static Map |
getMapFor(ParameterizedType pType)
Returns a new map of given ParameterizedType |
Node |
toNode(Map map,
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 MapConverter()
| Method Detail |
|---|
public static Map getMapFor(ParameterizedType pType)
throws IllegalAccessException,
InstantiationException
ParameterizedType
pType - the type
IllegalAccessException
InstantiationException
public Node toNode(Map map,
ConverterManager manager)
throws ConversionException
Converter
toNode in interface Converter<Map,ParameterizedType>map - the object to convertmanager - the ConverterManager
ConversionException
public Map fromNode(Node node,
ParameterizedType ptype,
ConverterManager manager)
throws ConversionException
Converter
fromNode in interface Converter<Map,ParameterizedType>node - the node to convertptype - the type to convert tomanager - the manager
ConversionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||