Class Mapping<M extends Mapping<M>>

java.lang.Object
com.broadleafcommerce.metadata.dsl.core.Mapping<M>
All Implemented Interfaces:
Copyable<M>
Direct Known Subclasses:
CollectionMapping, PickOmitMapping, PropertyMapping, TemplateMapping, TextTransformMapping

public abstract class Mapping<M extends Mapping<M>> extends Object implements Copyable<M>
An abstract mapping specification. Mappings are used in various situations to expressing the transformation of data from a source to a destination.
Author:
Nick Crum (ncrum)
  • Constructor Details

    • Mapping

      public Mapping()
    • Mapping

      public Mapping(Mapping<?> mapping)
  • Method Details

    • conditions

      public M conditions(List<Conditional<?>> conditions)
    • condition

      public M condition(Conditional<?>... conditions)
    • id

      public M id(String id)
    • self

      protected M self()
    • getId

      public String getId()
      An optional unique identifier for this mapping.
    • getWhen

      public List<Conditional<?>> getWhen()
      The set of conditions that control whether or not this mapping will be applied.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object