public abstract static class ObjectGraphUtil.AnnotatedFieldMappingVisitor extends Object implements ObjectGraphUtil.Visitor
Constructor and Description |
---|
AnnotatedFieldMappingVisitor(Set<Class<?>> linkedClasses,
Set<Class<? extends Annotation>> annotationClasses,
Set<Class<?>> fieldTypeClasses) |
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
doMap(Field field,
Object value) |
protected boolean |
hasAnnotation(Annotation[] annotations) |
protected boolean |
isFieldTypeClass(Class<?> clazz) |
protected boolean |
isLinkedClass(Class<?> clazz) |
protected Object |
mapValue(Field field,
Object value) |
Object |
visit(Field field,
Object target) |
public AnnotatedFieldMappingVisitor(Set<Class<?>> linkedClasses, Set<Class<? extends Annotation>> annotationClasses, Set<Class<?>> fieldTypeClasses)
public Object visit(Field field, Object target) throws Exception
visit
in interface ObjectGraphUtil.Visitor
Exception
protected abstract Object doMap(Field field, Object value)
protected boolean hasAnnotation(Annotation[] annotations)
protected boolean isFieldTypeClass(Class<?> clazz)
protected boolean isLinkedClass(Class<?> clazz)
protected Object mapValue(Field field, Object value)