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)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
M
condition(Conditional<?>... conditions)
M
conditions(List<Conditional<?>> conditions)
boolean
equals(Object o)
String
getId()
An optional unique identifier for this mapping.List<Conditional<?>>
getWhen()
The set of conditions that control whether or not this mapping will be applied.int
hashCode()
M
id(String id)
protected M
self()
-
-
-
Constructor Detail
-
Mapping
public Mapping()
-
Mapping
public Mapping(Mapping<?> mapping)
-
-
Method Detail
-
conditions
public M conditions(List<Conditional<?>> conditions)
-
condition
public M condition(Conditional<?>... conditions)
-
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.
-
canEqual
protected boolean canEqual(Object other)
-
-