Class SimpleBeanPropertyFilter
java.lang.Object
org.codehaus.jackson.map.ser.impl.SimpleBeanPropertyFilter
- All Implemented Interfaces:
BeanPropertyFilter
- Direct Known Subclasses:
SimpleBeanPropertyFilter.FilterExceptFilter, SimpleBeanPropertyFilter.SerializeExceptFilter
Simple
BeanPropertyFilter implementation 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 ClassesModifier and TypeClassDescriptionstatic classFilter implementation which defaults to filtering out unknown properties and only serializes ones explicitly listed.static classFilter implementation which defaults to serializing all properties, except for ones explicitly listed to be filtered out. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleBeanPropertyFilterfilterOutAllExcept(String... propertyArray) static SimpleBeanPropertyFilterfilterOutAllExcept(Set<String> properties) Factory method to construct filter that filters out all properties except ones includes in setstatic SimpleBeanPropertyFilterserializeAllExcept(String... propertyArray) static SimpleBeanPropertyFilterserializeAllExcept(Set<String> properties) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BeanPropertyFilter
serializeAsField
-
Constructor Details
-
SimpleBeanPropertyFilter
protected SimpleBeanPropertyFilter()
-
-
Method Details
-
filterOutAllExcept
Factory method to construct filter that filters out all properties except ones includes in set -
filterOutAllExcept
-
serializeAllExcept
-
serializeAllExcept
-