Interface AutoMappingPolicy

All Superinterfaces:
Serializable
All Known Implementing Classes:
CompositeAutoMappingPolicy, DefaultAutoMappingPolicy

public interface AutoMappingPolicy extends Serializable
An AutoMappingPolicy derives the target column assignment for a given argName by parsing or mapping the given argName.

Instances should be immutable because they are part of the static configuration.

Author:
Karl Eilebrecht
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether this mapping policy can map the given argument to a column
    map(String argName, de.calamanari.adl.ProcessContext ctx)
    Returns the column assignment for the given argName
  • Method Details

    • isApplicable

      boolean isApplicable(String argName)
      Returns whether this mapping policy can map the given argument to a column
      Parameters:
      argName -
      Returns:
      true if the policy is applicable
    • map

      ArgColumnAssignment map(String argName, de.calamanari.adl.ProcessContext ctx)
      Returns the column assignment for the given argName
      Parameters:
      argName -
      ctx -
      Returns:
      column assignment
      Throws:
      de.calamanari.adl.cnv.tps.ConfigException - if not applicable or if the underlying resolution failed