Class BeanMappingMethod

All Implemented Interfaces:
Writable

public class BeanMappingMethod extends NormalTypeMappingMethod
A MappingMethod implemented by a Mapper class which maps one bean type to another, optionally configured by one or more PropertyMappings.
Author:
Gunnar Morling
  • Method Details

    • getSubclassExhaustiveException

      public Type getSubclassExhaustiveException()
    • getConstantMappings

      public List<PropertyMapping> getConstantMappings()
    • getConstructorConstantMappings

      public List<PropertyMapping> getConstructorConstantMappings()
    • getSubclassMappings

      public List<SubclassMapping> getSubclassMappings()
    • getFinalizedResultName

      public String getFinalizedResultName()
    • getFinalizedReturnType

      public Type getFinalizedReturnType()
    • getOptionalResultName

      public String getOptionalResultName()
    • getBeforeMappingReferencesWithFinalizedReturnType

      public List<LifecycleCallbackMethodReference> getBeforeMappingReferencesWithFinalizedReturnType()
    • getAfterMappingReferencesWithFinalizedReturnType

      public List<LifecycleCallbackMethodReference> getAfterMappingReferencesWithFinalizedReturnType()
    • getAfterMappingReferencesWithOptionalReturnType

      public List<LifecycleCallbackMethodReference> getAfterMappingReferencesWithOptionalReturnType()
    • propertyMappingsByParameter

      public List<PropertyMapping> propertyMappingsByParameter(Parameter parameter)
    • constructorPropertyMappingsByParameter

      public List<PropertyMapping> constructorPropertyMappingsByParameter(Parameter parameter)
    • getReturnTypeToConstruct

      public Type getReturnTypeToConstruct()
    • hasSubclassMappings

      public boolean hasSubclassMappings()
    • isAbstractReturnType

      public boolean isAbstractReturnType()
    • hasConstructorMappings

      public boolean hasConstructorMappings()
    • getFinalizerMethod

      public MethodReference getFinalizerMethod()
    • getImportTypes

      public Set<Type> getImportTypes()
      Description copied from class: ModelElement
      Returns a set containing those Types referenced by this model element for which an import statement needs to be declared.
      Overrides:
      getImportTypes in class NormalTypeMappingMethod
      Returns:
      A set with type referenced by this model element. Must not be null.
    • getSourcePresenceChecks

      public Collection<PresenceCheck> getSourcePresenceChecks()
    • getPresenceChecksByParameter

      public Map<String,PresenceCheck> getPresenceChecksByParameter()
    • getPresenceCheckByParameter

      public PresenceCheck getPresenceCheckByParameter(Parameter parameter)
    • getSourceParametersNeedingPresenceCheck

      public List<Parameter> getSourceParametersNeedingPresenceCheck()
    • getSourceParametersNotNeedingPresenceCheck

      public List<Parameter> getSourceParametersNotNeedingPresenceCheck()
    • getSourceParameterReassignment

      public Parameter getSourceParameterReassignment(Parameter parameter)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class NormalTypeMappingMethod
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class NormalTypeMappingMethod