public class ClassTranslator<T> extends MapNodeTranslator<T>
Modifier and Type | Field and Description |
---|---|
protected Class<T> |
clazz |
protected ObjectifyFactory |
fact |
protected List<Property> |
owners
Any owner properties, if they exist
|
protected List<TranslatableProperty<Object>> |
props |
Constructor and Description |
---|
ClassTranslator(Class<T> clazz,
Path path,
CreateContext ctx) |
Modifier and Type | Method and Description |
---|---|
protected void |
foundTranslatableProperty(TranslatableProperty<Object> tprop)
Called when each property is discovered, allows a subclass to do something special with it
|
Class<?> |
getTranslatedClass() |
protected T |
loadMap(Node node,
LoadContext ctx)
Implement this knowing that we have a proper map node
|
protected Node |
saveMap(T pojo,
Path path,
boolean index,
SaveContext ctx)
Implement this, returning a map node
|
loadAbstract, saveAbstract
load, save
protected final ObjectifyFactory fact
protected final List<TranslatableProperty<Object>> props
public ClassTranslator(Class<T> clazz, Path path, CreateContext ctx)
public Class<?> getTranslatedClass()
protected void foundTranslatableProperty(TranslatableProperty<Object> tprop)
protected T loadMap(Node node, LoadContext ctx)
MapNodeTranslator
loadMap
in class MapNodeTranslator<T>
protected Node saveMap(T pojo, Path path, boolean index, SaveContext ctx)
MapNodeTranslator
saveMap
in class MapNodeTranslator<T>
Copyright © 2013. All Rights Reserved.