Package com.alibaba.fastjson.serializer
Class SimplePropertyPreFilter
- java.lang.Object
-
- com.alibaba.fastjson.serializer.SimplePropertyPreFilter
-
- All Implemented Interfaces:
PropertyPreFilter,SerializeFilter
- Direct Known Subclasses:
PropertyPreFilters.MySimplePropertyPreFilter
public class SimplePropertyPreFilter extends Object implements PropertyPreFilter
-
-
Constructor Summary
Constructors Constructor Description SimplePropertyPreFilter(Class<?> clazz, String... properties)SimplePropertyPreFilter(String... properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapply(JSONSerializer serializer, Object source, String name)Class<?>getClazz()Set<String>getExcludes()Set<String>getIncludes()intgetMaxLevel()voidsetMaxLevel(int maxLevel)
-
-
-
Method Detail
-
getMaxLevel
public int getMaxLevel()
- Since:
- 1.2.9
-
setMaxLevel
public void setMaxLevel(int maxLevel)
- Since:
- 1.2.9
-
getClazz
public Class<?> getClazz()
-
apply
public boolean apply(JSONSerializer serializer, Object source, String name)
- Specified by:
applyin interfacePropertyPreFilter
-
-