org.springframework.web.servlet.view.json.writer.sojo
Class MapGraphWalker

java.lang.Object
  extended by 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

Constructor Summary
MapGraphWalker()
           
MapGraphWalker(net.sf.sojo.core.filter.ClassPropertyFilterHandler pvFilterHandler)
           
 
Method Summary
 void addInterceptor(net.sf.sojo.common.WalkerInterceptor pvInterceptor)
           
 int getInterceptorSize()
           
 int getNumberOfRecursion()
           
 net.sf.sojo.common.ObjectUtil getObjectUtil()
           
 boolean isPropertyExcluded(String property)
           
 void removeInterceptorByNumber(int pvPosition)
           
 String removeLastPointOnPath(String pvPath)
           
 void setExcludedProperties(String[] pvExcludedProperties)
           
 void setIgnoreNullValues(boolean pvBoolean)
           
 void setObjectName(String objectName)
           
 void walk(Object pvObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapGraphWalker

public MapGraphWalker()

MapGraphWalker

public MapGraphWalker(net.sf.sojo.core.filter.ClassPropertyFilterHandler pvFilterHandler)
Method Detail

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.