Class PickOmitMapping
java.lang.Object
com.broadleafcommerce.metadata.dsl.core.Mapping<PickOmitMapping>
com.broadleafcommerce.metadata.dsl.core.extension.mappings.PickOmitMapping
- All Implemented Interfaces:
Copyable<PickOmitMapping>,Serializable
An implementation of
Mapping for picking and omitting source properties from the
destination.- Author:
- Nick Crum (ncrum)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanClears the set of omitted fields.Clears the set of picked fields.copy()booleangetOmit()The names of the properties that should not be kept from the source.getPick()The names of the properties that should be kept from the source.inthashCode()Sets the set of fields to exclude.Sets the set of fields to exclude.Sets the set of fields to include.Sets the set of fields to include.
-
Constructor Details
-
PickOmitMapping
public PickOmitMapping() -
PickOmitMapping
-
-
Method Details
-
copy
- Specified by:
copyin interfaceCopyable<PickOmitMapping>- Returns:
- a deep copy of this instance
-
pick
Sets the set of fields to include.- Parameters:
pick- the picked fields- Returns:
- the mapping
-
pick
Sets the set of fields to include.- Parameters:
pick- the picked fields- Returns:
- the mapping
-
clearPick
Clears the set of picked fields.- Returns:
- the mapping
-
omit
Sets the set of fields to exclude.- Parameters:
omit- the omitted fields- Returns:
- the mapping
-
omit
Sets the set of fields to exclude.- Parameters:
omit- the omitted fields- Returns:
- the mapping
-
clearOmit
Clears the set of omitted fields.- Returns:
- the mapping
-
getPick
The names of the properties that should be kept from the source. -
getOmit
The names of the properties that should not be kept from the source. -
equals
- Overrides:
equalsin classMapping<PickOmitMapping>
-
canEqual
- Overrides:
canEqualin classMapping<PickOmitMapping>
-
hashCode
public int hashCode()- Overrides:
hashCodein classMapping<PickOmitMapping>
-