@Singleton @Named public class PojoPropertyAccessorGetBuilder extends AbstractPojoPropertyAccessorBuilder<PojoPropertyAccessorNonArg> implements PojoPropertyAccessorNonArgBuilder
PojoPropertyAccessorNonArgBuilder
interface for
getter-access
.Modifier and Type | Field and Description |
---|---|
private static String |
METHOD_PREFIX_GET
method name prefix for classic getter.
|
private static String |
METHOD_PREFIX_HAS
alternative method name prefix for boolean getter.
|
private static String |
METHOD_PREFIX_IS
alternative method name prefix for boolean getter.
|
private static String[] |
METHOD_PREFIXES_BOOLEAN
alternative method name prefixes for boolean getters.
|
Constructor and Description |
---|
PojoPropertyAccessorGetBuilder()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
PojoPropertyAccessorNonArg |
create(Field field,
PojoDescriptor<?> descriptor,
PojoDescriptorDependencies dependencies)
This method creates the
accessor for the given field if that field is suitable
for this builder (e.g. |
PojoPropertyAccessorNonArg |
create(Method method,
PojoDescriptor<?> descriptor,
PojoDescriptorDependencies dependencies)
This method creates the
accessor for the given method if that method is
suitable for this builder (e.g. |
PojoPropertyAccessorNonArgMode |
getMode()
This method gets the mode of this builder.
|
getPropertyName, getPropertyName, getPropertyName, isBooleanType, isIntegerType
private static final String METHOD_PREFIX_GET
private static final String METHOD_PREFIX_IS
private static final String METHOD_PREFIX_HAS
private static final String[] METHOD_PREFIXES_BOOLEAN
public PojoPropertyAccessorGetBuilder()
public PojoPropertyAccessorNonArg create(Method method, PojoDescriptor<?> descriptor, PojoDescriptorDependencies dependencies)
PojoPropertyAccessorBuilder
accessor
for the given method
if that method is
suitable for this builder (e.g. starts with "set").create
in interface PojoPropertyAccessorBuilder<PojoPropertyAccessorNonArg>
method
- the method to access.descriptor
- is the descriptor of the Pojo
having the given method
.dependencies
- are the PojoDescriptorDependencies
with injected helper components.accessor
for the given method
or null
if the
method
is NOT suitable for this builder.public PojoPropertyAccessorNonArg create(Field field, PojoDescriptor<?> descriptor, PojoDescriptorDependencies dependencies)
PojoPropertyAccessorBuilder
accessor
for the given field
if that field is suitable
for this builder (e.g. contains a container type).create
in interface PojoPropertyAccessorBuilder<PojoPropertyAccessorNonArg>
field
- is the field.descriptor
- is the descriptor of the Pojo
having the given field
.dependencies
- are the PojoDescriptorDependencies
with injected helper components.accessor
for the given field
or null
if the field
is NOT suitable for this builder.public PojoPropertyAccessorNonArgMode getMode()
PojoPropertyAccessorBuilder
getMode
in interface PojoPropertyAccessorBuilder<PojoPropertyAccessorNonArg>
getMode
in interface PojoPropertyAccessorNonArgBuilder
Copyright © 2001–2016 mmm-Team. All rights reserved.