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 boolean
Clears the set of omitted fields.Clears the set of picked fields.copy()
boolean
getOmit()
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.int
hashCode()
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:
copy
in 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:
equals
in classMapping<PickOmitMapping>
-
canEqual
- Overrides:
canEqual
in classMapping<PickOmitMapping>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMapping<PickOmitMapping>
-