it.avutils.jmapper.operations
Class AGeneralOperationAccessor

java.lang.Object
  extended by it.avutils.jmapper.operations.AGeneralOperationAccessor
Direct Known Subclasses:
AGeneralOperation

public abstract class AGeneralOperationAccessor
extends Object

This Abstract class is a container of data, the purpose is to separate the data from the logic.

Author:
Alessandro Vurro

Field Summary
protected  ConversionMethod conversion
          Name of the method that defines the conversion
protected  Membership conversionMembership
          membership of the conversion method
protected  Field destinationField
          destination field
protected  InfoOperation info
          information about the operation that will be executed
protected  String initialDGetPath
          first part of the getDestination path
protected  String initialDSetPath
          first part of the setDestination path
protected  String initialSGetPath
          first part of the getSource path
protected  MappingType mtd
          mapping type of destination
protected  MappingType mts
          mapping type of source
protected  Field sourceField
          source field
 
Constructor Summary
AGeneralOperationAccessor()
           
 
Method Summary
protected  Class<?> destinationType()
           
 MappingType getMtd()
           
 MappingType getMts()
           
 AGeneralOperationAccessor initialDGetPath(String initialDGetPath)
          Setting of the first part of the getDestination path.
 AGeneralOperationAccessor initialDSetPath(String initialDSetPath)
          Setting of the first part of the setDestination path.
 AGeneralOperationAccessor initialSGetPath(String initialSGetPath)
          Setting of the first part of the initialSGetPath path.
 AGeneralOperationAccessor setConversionMethod(ConversionMethod conversion)
          Setting of the conversion method
 AGeneralOperationAccessor setDestinationField(Field aDestinationField)
          Setting of destination field.
 AGeneralOperationAccessor setInfoOperation(InfoOperation aInfo)
          Setting of operation informations.
 AGeneralOperationAccessor setMemberShip(Membership membership)
          The conversion method belongs to this membership.
 AGeneralOperationAccessor setMtd(MappingType mappingTypeD)
          Setting of destination mapping type.
 AGeneralOperationAccessor setMts(MappingType mappingTypeS)
          Setting of source mapping type.
 AGeneralOperationAccessor setSourceField(Field aSourceField)
          Setting of source field.
protected  Class<?> sourceType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialDGetPath

protected String initialDGetPath
first part of the getDestination path


initialDSetPath

protected String initialDSetPath
first part of the setDestination path


initialSGetPath

protected String initialSGetPath
first part of the getSource path


mts

protected MappingType mts
mapping type of source


mtd

protected MappingType mtd
mapping type of destination


info

protected InfoOperation info
information about the operation that will be executed


destinationField

protected Field destinationField
destination field


sourceField

protected Field sourceField
source field


conversion

protected ConversionMethod conversion
Name of the method that defines the conversion


conversionMembership

protected Membership conversionMembership
membership of the conversion method

Constructor Detail

AGeneralOperationAccessor

public AGeneralOperationAccessor()
Method Detail

setConversionMethod

public final AGeneralOperationAccessor setConversionMethod(ConversionMethod conversion)
Setting of the conversion method

Parameters:
conversion - the method used to convert
Returns:
this instance

setMemberShip

public final AGeneralOperationAccessor setMemberShip(Membership membership)
The conversion method belongs to this membership.

Parameters:
membership - membership of conversion method
Returns:
this instance

initialDGetPath

public final AGeneralOperationAccessor initialDGetPath(String initialDGetPath)
Setting of the first part of the getDestination path.

Parameters:
initialDGetPath -
Returns:
this instance

initialDSetPath

public final AGeneralOperationAccessor initialDSetPath(String initialDSetPath)
Setting of the first part of the setDestination path.

Parameters:
initialDSetPath -
Returns:
this instance

initialSGetPath

public final AGeneralOperationAccessor initialSGetPath(String initialSGetPath)
Setting of the first part of the initialSGetPath path.

Parameters:
initialSGetPath -
Returns:
this instance

setDestinationField

public final AGeneralOperationAccessor setDestinationField(Field aDestinationField)
Setting of destination field.

Parameters:
aDestinationField -
Returns:
this instance

setSourceField

public final AGeneralOperationAccessor setSourceField(Field aSourceField)
Setting of source field.

Parameters:
aSourceField -
Returns:
this instance

destinationType

protected final Class<?> destinationType()
Returns:
the destination field type

sourceType

protected final Class<?> sourceType()
Returns:
the source field type

getMts

public final MappingType getMts()
Returns:
mapping type of destination

getMtd

public final MappingType getMtd()
Returns:
mapping type of source

setMtd

public final AGeneralOperationAccessor setMtd(MappingType mappingTypeD)
Setting of destination mapping type.

Parameters:
mappingTypeD -
Returns:
this instance

setMts

public final AGeneralOperationAccessor setMts(MappingType mappingTypeS)
Setting of source mapping type.

Parameters:
mappingTypeS -
Returns:
this instance

setInfoOperation

public final AGeneralOperationAccessor setInfoOperation(InfoOperation aInfo)
Setting of operation informations.

Parameters:
aInfo -
Returns:
this instance


Copyright © 2013. All Rights Reserved.