org.omnaest.utils.beans.adapter
Class SourcePropertyAccessorToTypeAdapter.Configuration
java.lang.Object
org.omnaest.utils.beans.adapter.SourcePropertyAccessorToTypeAdapter.Configuration
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- PropertynameMapToTypeAdapter.Configuration
- Enclosing class:
- SourcePropertyAccessorToTypeAdapter<T>
public static class SourcePropertyAccessorToTypeAdapter.Configuration
- extends Object
- implements Serializable
The SourcePropertyAccessorToTypeAdapter.Configuration of a SourcePropertyAccessorToTypeAdapter includes following settings:
If setPropertyAccessOption(PropertyAccessOption) is set to another PropertyAccessOption it is possible to
access the underlying Map keys e.g. with lowercased keys instead of the case sensitive property names.
If setRegardingAdapterAnnotation(boolean) is set to true, the Converter are evaluated and the respective
ElementConverter be called to translate the setter parameter or the getter return value.
If setRegardingPropertyNameTemplate(boolean) is set to true, all PropertyNameTemplate Annotations
are considered.
- Author:
- Omnaest
- See Also:
Converter,
PropertyNameTemplate,
SourcePropertyAccessorToTypeAdapter,
Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourcePropertyAccessorToTypeAdapter.Configuration
public SourcePropertyAccessorToTypeAdapter.Configuration(MethodInvocationHandlerDecorator[] methodInvocationHandlerDecorators,
SourcePropertyAccessorDecorator[] sourcePropertyAccessorDecorators)
- Parameters:
methodInvocationHandlerDecorators - sourcePropertyAccessorDecorators -
SourcePropertyAccessorToTypeAdapter.Configuration
public SourcePropertyAccessorToTypeAdapter.Configuration(PropertyAccessOption propertyAccessOption,
boolean isRegardingAdapterAnnotation,
boolean isRegardingPropertyNameTemplateAnnotation,
boolean isRegardingDefaultValueAnnotation)
- Parameters:
propertyAccessOption - isRegardingAdapterAnnotation - isRegardingPropertyNameTemplateAnnotation - isRegardingDefaultValueAnnotation - - See Also:
SourcePropertyAccessorToTypeAdapter.Configuration
SourcePropertyAccessorToTypeAdapter.Configuration
public SourcePropertyAccessorToTypeAdapter.Configuration()
SourcePropertyAccessorToTypeAdapter.Configuration
public SourcePropertyAccessorToTypeAdapter.Configuration(Class<?>... interfaces)
- Parameters:
interfaces -
addInterface
public void addInterface(Class<?> interfaceType)
- Parameters:
interfaceType -
addSourcePropertyAccessorDecorator
public void addSourcePropertyAccessorDecorator(SourcePropertyAccessorDecorator sourcePropertyAccessorDecorator)
- Parameters:
sourcePropertyAccessorDecorator - - See Also:
SourcePropertyAccessorDecorator
addMethodInvocationHandlerDecorator
public void addMethodInvocationHandlerDecorator(MethodInvocationHandlerDecorator methodInvocationHandlerDecorator)
- Parameters:
methodInvocationHandlerDecorator - - See Also:
MethodInvocationHandlerDecorator
getInterfaces
public Class<?>[] getInterfaces()
setInterfaces
public void setInterfaces(Class<?>[] interfaces)
getMethodInvocationHandlerDecorators
public MethodInvocationHandlerDecorator[] getMethodInvocationHandlerDecorators()
setMethodInvocationHandlerDecorators
public void setMethodInvocationHandlerDecorators(MethodInvocationHandlerDecorator[] methodInvocationHandlerDecorators)
getPropertyAccessOption
public PropertyAccessOption getPropertyAccessOption()
setPropertyAccessOption
public void setPropertyAccessOption(PropertyAccessOption propertyAccessOption)
getSourcePropertyAccessorDecorators
public SourcePropertyAccessorDecorator[] getSourcePropertyAccessorDecorators()
setSourcePropertyAccessorDecorators
public void setSourcePropertyAccessorDecorators(SourcePropertyAccessorDecorator[] sourcePropertyAccessorDecorators)
isRegardingAdapterAnnotation
public boolean isRegardingAdapterAnnotation()
setRegardingAdapterAnnotation
public void setRegardingAdapterAnnotation(boolean isRegardingAdapterAnnotation)
isRegardingPropertyNameTemplateAnnotation
public boolean isRegardingPropertyNameTemplateAnnotation()
setRegardingPropertyNameTemplate
public void setRegardingPropertyNameTemplate(boolean isRegardingPropertyNameTemplate)
getRegardedAnnotationScope
public SourcePropertyAccessorToTypeAdapter.Configuration.RegardedAnnotationScope getRegardedAnnotationScope()
setRegardedAnnotationScope
public void setRegardedAnnotationScope(SourcePropertyAccessorToTypeAdapter.Configuration.RegardedAnnotationScope regardedAnnotationScope)
isRegardingDefaultValueAnnotation
public boolean isRegardingDefaultValueAnnotation()
setRegardingDefaultValueAnnotation
public void setRegardingDefaultValueAnnotation(boolean isRegardingDefaultValueAnnotation)
Copyright © 2013. All Rights Reserved.