com.alibaba.fastjson.serializer
Class SimplePropertyPreFilter

java.lang.Object
  extended by com.alibaba.fastjson.serializer.SimplePropertyPreFilter
All Implemented Interfaces:
PropertyPreFilter, SerializeFilter

public class SimplePropertyPreFilter
extends Object
implements PropertyPreFilter


Constructor Summary
SimplePropertyPreFilter(Class<?> clazz, String... properties)
           
SimplePropertyPreFilter(String... properties)
           
 
Method Summary
 boolean apply(JSONSerializer serializer, Object source, String name)
           
 Class<?> getClazz()
           
 Set<String> getExcludes()
           
 Set<String> getIncludes()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePropertyPreFilter

public SimplePropertyPreFilter(String... properties)

SimplePropertyPreFilter

public SimplePropertyPreFilter(Class<?> clazz,
                               String... properties)
Method Detail

getClazz

public Class<?> getClazz()

getIncludes

public Set<String> getIncludes()

getExcludes

public Set<String> getExcludes()

apply

public boolean apply(JSONSerializer serializer,
                     Object source,
                     String name)
Specified by:
apply in interface PropertyPreFilter


Copyright © 2012 Alibaba Group. All Rights Reserved.