Liferay 7.0-ce-b4

com.liferay.portal.kernel.util
Class ObjectGraphUtil.AnnotatedFieldMappingVisitor

java.lang.Object
  extended by com.liferay.portal.kernel.util.ObjectGraphUtil.AnnotatedFieldMappingVisitor
All Implemented Interfaces:
ObjectGraphUtil.Visitor
Direct Known Subclasses:
FabricPathMappingVisitor
Enclosing class:
ObjectGraphUtil

public abstract static class ObjectGraphUtil.AnnotatedFieldMappingVisitor
extends Object
implements ObjectGraphUtil.Visitor


Constructor Summary
ObjectGraphUtil.AnnotatedFieldMappingVisitor(Set<Class<?>> linkedClasses, Set<Class<? extends Annotation>> annotationClasses, Set<Class<?>> fieldTypeClasses)
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectGraphUtil.AnnotatedFieldMappingVisitor

public ObjectGraphUtil.AnnotatedFieldMappingVisitor(Set<Class<?>> linkedClasses,
                                                    Set<Class<? extends Annotation>> annotationClasses,
                                                    Set<Class<?>> fieldTypeClasses)
Method Detail

visit

public Object visit(Field field,
                    Object target)
             throws Exception
Specified by:
visit in interface ObjectGraphUtil.Visitor
Throws:
Exception

doMap

protected abstract Object doMap(Field field,
                                Object value)

hasAnnotation

protected boolean hasAnnotation(Annotation[] annotations)

isFieldTypeClass

protected boolean isFieldTypeClass(Class<?> clazz)

isLinkedClass

protected boolean isLinkedClass(Class<?> clazz)

mapValue

protected Object mapValue(Field field,
                          Object value)

Liferay 7.0-ce-b4