org.springframework.web.servlet.view.json.writer.sojo
Class MapGraphWalker
java.lang.Object
org.springframework.web.servlet.view.json.writer.sojo.MapGraphWalker
public class MapGraphWalker
- extends Object
Walk over (to traverse) object graph and collection information over path and values of the objects.
This can use to transform one object graph to other representation (by registration of implementation from the interface WalkerInterceptor
).
- Author:
- linke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapGraphWalker
public MapGraphWalker()
MapGraphWalker
public MapGraphWalker(net.sf.sojo.core.filter.ClassPropertyFilterHandler pvFilterHandler)
getObjectUtil
public net.sf.sojo.common.ObjectUtil getObjectUtil()
setExcludedProperties
public void setExcludedProperties(String[] pvExcludedProperties)
setIgnoreNullValues
public void setIgnoreNullValues(boolean pvBoolean)
addInterceptor
public void addInterceptor(net.sf.sojo.common.WalkerInterceptor pvInterceptor)
getInterceptorSize
public int getInterceptorSize()
removeInterceptorByNumber
public void removeInterceptorByNumber(int pvPosition)
getNumberOfRecursion
public int getNumberOfRecursion()
walk
public void walk(Object pvObject)
removeLastPointOnPath
public String removeLastPointOnPath(String pvPath)
isPropertyExcluded
public boolean isPropertyExcluded(String property)
setObjectName
public void setObjectName(String objectName)
Copyright © 2010. All Rights Reserved.