Class TransformBody
java.lang.Object
com.broadleafcommerce.metadata.dsl.core.TransformBody
- All Implemented Interfaces:
Copyable<TransformBody>
,Serializable
Represents the transformation of the request or response data for an API request.
- Author:
- Nick Crum (ncrum)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Clears the current set of collection mappings.Clears the set of omitted fields.Clears the set of picked fields.copy()
boolean
Set of mappings to transform the data.getOmit()
The names of the properties that should be excluded from the data.getPick()
The names of the properties that should be kept from the data.int
hashCode()
Adds to the set of mappings to transform the collection.Adds to the set of mappings to transform the collection.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.protected TransformBody
self()
-
Constructor Details
-
TransformBody
public TransformBody() -
TransformBody
-
-
Method Details
-
copy
- Specified by:
copy
in interfaceCopyable<TransformBody>
- Returns:
- a deep copy of this instance
-
mappings
Adds to the set of mappings to transform the collection.- Parameters:
mappings
- the collection mappings- Returns:
- the mapping
-
mapping
Adds to the set of mappings to transform the collection.- Parameters:
mappings
- the collection mappings- Returns:
- the mapping
-
clearMappings
Clears the current set of collection mappings.- Returns:
- the mapping
-
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
-
self
-
getMappings
Set of mappings to transform the data. -
getPick
The names of the properties that should be kept from the data. -
getOmit
The names of the properties that should be excluded from the data. -
equals
-
canEqual
-
hashCode
public int hashCode()
-