thinkmap.server.json
Class JSONWriter.Filter

java.lang.Object
  extended by thinkmap.server.json.JSONWriter.Filter
Enclosing class:
JSONWriter

public static class JSONWriter.Filter
extends Object


Constructor Summary
JSONWriter.Filter(int depthLimit, String[] includes, String[] excludes)
           
JSONWriter.Filter(JSONFilter filter)
           
 
Method Summary
 void addTransform(JSONTransform transform)
           
protected  void apply(JSONWriter.Filter prev)
           
 boolean canWrite(String name)
           
protected  JSONWriter.Filter enter(JSONWriter w, String name)
           
protected  boolean excludes(String prop)
           
 JSONTransformer<?,?> getTransformer(String prop)
           
protected  boolean includes(String prop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONWriter.Filter

public JSONWriter.Filter(JSONFilter filter)

JSONWriter.Filter

public JSONWriter.Filter(int depthLimit,
                         String[] includes,
                         String[] excludes)
Method Detail

addTransform

public void addTransform(JSONTransform transform)
                  throws InstantiationException,
                         IllegalAccessException
Throws:
InstantiationException
IllegalAccessException

apply

protected void apply(JSONWriter.Filter prev)

enter

protected JSONWriter.Filter enter(JSONWriter w,
                                  String name)

getTransformer

public JSONTransformer<?,?> getTransformer(String prop)

canWrite

public boolean canWrite(String name)

includes

protected boolean includes(String prop)

excludes

protected boolean excludes(String prop)


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.