net.sf.mmm.util.pojo.descriptor.base.accessor
Interface PojoPropertyAccessorBuilder<ACCESSOR extends PojoPropertyAccessor>

Type Parameters:
ACCESSOR - is the type of the accessor
All Known Subinterfaces:
PojoPropertyAccessorIndexedNonArgBuilder, PojoPropertyAccessorIndexedOneArgBuilder, PojoPropertyAccessorNonArgBuilder, PojoPropertyAccessorOneArgBuilder, PojoPropertyAccessorTwoArgBuilder
All Known Implementing Classes:
AbstractPojoPropertyAccessorBuilder, PojoPropertyAccessorAddBuilder, PojoPropertyAccessorGetBuilder, PojoPropertyAccessorGetIndexedBuilder, PojoPropertyAccessorGetMappedBuilder, PojoPropertyAccessorRemoveBuilder, PojoPropertyAccessorSetBuilder, PojoPropertyAccessorSetIndexedBuilder, PojoPropertyAccessorSetMappedBuilder, PojoPropertyAccessorSizeBuilder

public interface PojoPropertyAccessorBuilder<ACCESSOR extends PojoPropertyAccessor>

This is the interface used to create a PojoPropertyAccessor.

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

Method Summary
 ACCESSOR 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.
 ACCESSOR 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.
 PojoPropertyAccessorMode<ACCESSOR> getMode()
          This method gets the mode of this builder.
 

Method Detail

create

ACCESSOR 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").

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

ACCESSOR 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).

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

PojoPropertyAccessorMode<ACCESSOR> getMode()
This method gets the mode of this builder.

Returns:
the mode.


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