Class SimpleBeanPropertyFilter
- java.lang.Object
-
- org.codehaus.jackson.map.ser.impl.SimpleBeanPropertyFilter
-
- All Implemented Interfaces:
BeanPropertyFilter
- Direct Known Subclasses:
SimpleBeanPropertyFilter.FilterExceptFilter,SimpleBeanPropertyFilter.SerializeExceptFilter
public abstract class SimpleBeanPropertyFilter extends java.lang.Object implements BeanPropertyFilter
SimpleBeanPropertyFilterimplementation that only uses property name to determine whether to serialize property as is, or to filter it out.- Since:
- 1.7
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimpleBeanPropertyFilter.FilterExceptFilterFilter implementation which defaults to filtering out unknown properties and only serializes ones explicitly listed.static classSimpleBeanPropertyFilter.SerializeExceptFilterFilter implementation which defaults to serializing all properties, except for ones explicitly listed to be filtered out.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimpleBeanPropertyFilter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimpleBeanPropertyFilterfilterOutAllExcept(java.lang.String... propertyArray)static SimpleBeanPropertyFilterfilterOutAllExcept(java.util.Set<java.lang.String> properties)Factory method to construct filter that filters out all properties except ones includes in setstatic SimpleBeanPropertyFilterserializeAllExcept(java.lang.String... propertyArray)static SimpleBeanPropertyFilterserializeAllExcept(java.util.Set<java.lang.String> properties)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codehaus.jackson.map.ser.BeanPropertyFilter
serializeAsField
-
-
-
-
Method Detail
-
filterOutAllExcept
public static SimpleBeanPropertyFilter filterOutAllExcept(java.util.Set<java.lang.String> properties)
Factory method to construct filter that filters out all properties except ones includes in set
-
filterOutAllExcept
public static SimpleBeanPropertyFilter filterOutAllExcept(java.lang.String... propertyArray)
-
serializeAllExcept
public static SimpleBeanPropertyFilter serializeAllExcept(java.util.Set<java.lang.String> properties)
-
serializeAllExcept
public static SimpleBeanPropertyFilter serializeAllExcept(java.lang.String... propertyArray)
-
-