Package org.apache.juneau
Class BeanFilter
java.lang.Object
org.apache.juneau.BeanFilter
Parent class for all bean filters.
 
Bean filters are used to control aspects of how beans are handled during serialization and parsing.
 Bean filters are created by BeanFilter.Builder which is the programmatic equivalent to the @Bean
 annotation.
 
See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> BeanFilter.BuilderCreate a new builder for this object.Class<?>Returns the bean class that this filter applies to.Class<?>[]Returns the bean dictionary defined on this bean.Returns the example associated with this class.Returns the list of properties to ignore on a bean.Class<?>Returns the implementation class associated with this class.Class<?>Returns the interface class associated with this class.Returns the set and order of names of properties associated with a bean class.Returns thePropertyNamerassociated with the bean to tailor the names of bean properties.Returns the list of read-only properties on a bean.Class<?>Returns the stop class associated with this class.Returns the dictionary name associated with this bean.Returns the list of write-only properties on a bean.booleanReturnstrue if we should find fluent setters.booleanReturnstrue if the properties defined on this bean class should be ordered alphabetically.readProperty(Object bean, String name, Object value) Calls theBeanInterceptor.readProperty(Object, String, Object)method on the registered property filters.writeProperty(Object bean, String name, Object value) Calls theBeanInterceptor.writeProperty(Object, String, Object)method on the registered property filters.
- 
Method Details- 
createCreate a new builder for this object.- Type Parameters:
- T- The bean class being filtered.
- Parameters:
- beanClass- The bean class being filtered.
- Returns:
- A new builder.
 
- 
getBeanClassReturns the bean class that this filter applies to.- Returns:
- The bean class that this filter applies to.
 
- 
getTypeNameReturns the dictionary name associated with this bean.- Returns:
- The dictionary name associated with this bean, or null if no name is defined.
 
- 
getBeanDictionaryReturns the bean dictionary defined on this bean.- Returns:
- The bean dictionary defined on this bean, or null if no bean dictionary is defined.
 
- 
getPropertiesReturns the set and order of names of properties associated with a bean class.- Returns:
- The names of the properties associated with a bean class, or and empty set if all bean properties should be used.
 
- 
getExcludePropertiesReturns the list of properties to ignore on a bean.- Returns:
- The names of the properties to ignore on a bean, or an empty set to not ignore any properties.
 
- 
getReadOnlyPropertiesReturns the list of read-only properties on a bean.- Returns:
- The names of the read-only properties on a bean, or an empty set to not have any read-only properties.
 
- 
getWriteOnlyPropertiesReturns the list of write-only properties on a bean.- Returns:
- The names of the write-only properties on a bean, or an empty set to not have any write-only properties.
 
- 
isSortPropertiesReturnstrue if the properties defined on this bean class should be ordered alphabetically.This method is only used when the getProperties()method returnsnull . Otherwise, the ordering of the properties in the returned value is used.- Returns:
- true if bean properties should be sorted.
 
- 
isFluentSettersReturnstrue if we should find fluent setters.- Returns:
- true if fluent setters should be found.
 
- 
getPropertyNamerReturns thePropertyNamerassociated with the bean to tailor the names of bean properties.- Returns:
- The property namer class, or null if no property namer is associated with this bean property.
 
- 
getImplClassReturns the implementation class associated with this class.- Returns:
- The implementation class associated with this class, or null if no implementation class is associated.
 
- 
getInterfaceClassReturns the interface class associated with this class.- Returns:
- The interface class associated with this class, or null if no interface class is associated.
 
- 
getStopClassReturns the stop class associated with this class.- Returns:
- The stop class associated with this class, or null if no stop class is associated.
 
- 
getExampleReturns the example associated with this class.- Returns:
- The example associated with this class, or null if no example is associated.
 
- 
readPropertyCalls theBeanInterceptor.readProperty(Object, String, Object)method on the registered property filters.- Parameters:
- bean- The bean from which the property was read.
- name- The property name.
- value- The value just extracted from calling the bean getter.
- Returns:
- The value to serialize. Default is just to return the existing value.
 
- 
writePropertyCalls theBeanInterceptor.writeProperty(Object, String, Object)method on the registered property filters.- Parameters:
- bean- The bean from which the property was read.
- name- The property name.
- value- The value just parsed.
- Returns:
- The value to serialize. Default is just to return the existing value.
 
 
-