Class TextTransformMapping
java.lang.Object
com.broadleafcommerce.metadata.dsl.core.Mapping<TextTransformMapping>
com.broadleafcommerce.metadata.dsl.core.extension.mappings.TextTransformMapping
- All Implemented Interfaces:
Copyable<TextTransformMapping>
,Serializable
An implementation of
Mapping
for transforming a text property common case
transformations.- Author:
- Nick Crum (ncrum)
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the text transform to camel case the property.protected boolean
Sets the text transform to capitalize the property.copy()
boolean
getPath()
The name of the text property to transform.The transform to apply to the text property.int
hashCode()
Sets the text transform to kebab case the property.Sets the text transform to lower case the property.Sets the text property path to transform.Sets the text transform to snake case the property.Sets the text transform to start case the property.Sets the text transform operation name to the provided value.trim()
Sets the text transform to trim the property.Sets the text transform to upper case the property.
-
Constructor Details
-
TextTransformMapping
public TextTransformMapping() -
TextTransformMapping
-
-
Method Details
-
copy
- Specified by:
copy
in interfaceCopyable<TextTransformMapping>
- Returns:
- a deep copy of this instance
-
path
Sets the text property path to transform.- Parameters:
path
- the property path- Returns:
- the mapping
-
transform
Sets the text transform operation name to the provided value.- Parameters:
transform
- the text transform name- Returns:
- the mapping
-
camelCase
Sets the text transform to camel case the property.- Returns:
- the mapping
-
capitalize
Sets the text transform to capitalize the property.- Returns:
- the mapping
-
kebabCase
Sets the text transform to kebab case the property.- Returns:
- the mapping
-
lowerCase
Sets the text transform to lower case the property.- Returns:
- the mapping
-
snakeCase
Sets the text transform to snake case the property.- Returns:
- the mapping
-
startCase
Sets the text transform to start case the property.- Returns:
- the mapping
-
trim
Sets the text transform to trim the property.- Returns:
- the mapping
-
upperCase
Sets the text transform to upper case the property.- Returns:
- the mapping
-
getPath
The name of the text property to transform. -
getTransform
The transform to apply to the text property. -
equals
- Overrides:
equals
in classMapping<TextTransformMapping>
-
canEqual
- Overrides:
canEqual
in classMapping<TextTransformMapping>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMapping<TextTransformMapping>
-