net.sf.mmm.util.pojo.descriptor.impl.accessor
Class PojoPropertyAccessorGetMappedBuilder

java.lang.Object
  extended by net.sf.mmm.util.pojo.descriptor.base.accessor.AbstractPojoPropertyAccessorBuilder<PojoPropertyAccessorOneArg>
      extended by net.sf.mmm.util.pojo.descriptor.impl.accessor.PojoPropertyAccessorGetMappedBuilder
All Implemented Interfaces:
PojoPropertyAccessorBuilder<PojoPropertyAccessorOneArg>, PojoPropertyAccessorOneArgBuilder

@Singleton
@Named
public class PojoPropertyAccessorGetMappedBuilder
extends AbstractPojoPropertyAccessorBuilder<PojoPropertyAccessorOneArg>
implements PojoPropertyAccessorOneArgBuilder

This is the implementation of the PojoPropertyAccessorOneArgBuilder interface for mapped getter-access.

Since:
1.1.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Field Summary
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 Summary
PojoPropertyAccessorGetMappedBuilder()
          The constructor.
 
Method Summary
 PojoPropertyAccessorOneArg 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.
 PojoPropertyAccessorOneArg 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.
 PojoPropertyAccessorOneArgMode getMode()
          This method gets the mode of this builder.
 
Methods inherited from class net.sf.mmm.util.pojo.descriptor.base.accessor.AbstractPojoPropertyAccessorBuilder
getPropertyName, getPropertyName, getPropertyName, isBooleanType, isIntegerType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METHOD_PREFIX_GET

private static final String METHOD_PREFIX_GET
method name prefix for classic getter.

See Also:
Constant Field Values

METHOD_PREFIX_IS

private static final String METHOD_PREFIX_IS
alternative method name prefix for boolean getter.

See Also:
Constant Field Values

METHOD_PREFIX_HAS

private static final String METHOD_PREFIX_HAS
alternative method name prefix for boolean getter.

See Also:
Constant Field Values

METHOD_PREFIXES_BOOLEAN

private static final String[] METHOD_PREFIXES_BOOLEAN
alternative method name prefixes for boolean getters.

Constructor Detail

PojoPropertyAccessorGetMappedBuilder

public PojoPropertyAccessorGetMappedBuilder()
The constructor.

Method Detail

create

public PojoPropertyAccessorOneArg 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. starts with "set").

Specified by:
create in interface PojoPropertyAccessorBuilder<PojoPropertyAccessorOneArg>
Parameters:
method - the method to access.
descriptor - is the descriptor of the Pojo having the given method.
dependencies - are the PojoDescriptorDependencies with injected helper components.
Returns:
the accessor for the given method or null if the method is NOT suitable for this builder.

create

public PojoPropertyAccessorOneArg 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. contains a container type).

Specified by:
create in interface PojoPropertyAccessorBuilder<PojoPropertyAccessorOneArg>
Parameters:
field - is the field.
descriptor - is the descriptor of the Pojo having the given field.
dependencies - are the PojoDescriptorDependencies with injected helper components.
Returns:
the accessor for the given field or null if the field is NOT suitable for this builder.

getMode

public PojoPropertyAccessorOneArgMode getMode()
This method gets the mode of this builder.

Specified by:
getMode in interface PojoPropertyAccessorBuilder<PojoPropertyAccessorOneArg>
Specified by:
getMode in interface PojoPropertyAccessorOneArgBuilder
Returns:
the mode.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.