public class TextTransformMapping extends Mapping<TextTransformMapping> implements Serializable
Mapping
for transforming a text property common case
transformations.Modifier and Type | Class and Description |
---|---|
static class |
TextTransformMapping.DefaultTextTransforms |
Constructor and Description |
---|
TextTransformMapping() |
TextTransformMapping(TextTransformMapping mapping) |
Modifier and Type | Method and Description |
---|---|
TextTransformMapping |
camelCase()
Sets the text transform to camel case the property.
|
protected boolean |
canEqual(Object other) |
TextTransformMapping |
capitalize()
Sets the text transform to capitalize the property.
|
TextTransformMapping |
copy() |
boolean |
equals(Object o) |
String |
getPath()
The name of the text property to transform.
|
String |
getTransform()
The transform to apply to the text property.
|
int |
hashCode() |
TextTransformMapping |
kebabCase()
Sets the text transform to kebab case the property.
|
TextTransformMapping |
lowerCase()
Sets the text transform to lower case the property.
|
TextTransformMapping |
path(String path)
Sets the text property path to transform.
|
TextTransformMapping |
snakeCase()
Sets the text transform to snake case the property.
|
TextTransformMapping |
startCase()
Sets the text transform to start case the property.
|
TextTransformMapping |
transform(String transform)
Sets the text transform operation name to the provided value.
|
TextTransformMapping |
trim()
Sets the text transform to trim the property.
|
TextTransformMapping |
upperCase()
Sets the text transform to upper case the property.
|
public TextTransformMapping()
public TextTransformMapping(TextTransformMapping mapping)
public TextTransformMapping copy()
copy
in interface Copyable<TextTransformMapping>
public TextTransformMapping path(String path)
path
- the property pathpublic TextTransformMapping transform(String transform)
transform
- the text transform namepublic TextTransformMapping camelCase()
public TextTransformMapping capitalize()
public TextTransformMapping kebabCase()
public TextTransformMapping lowerCase()
public TextTransformMapping snakeCase()
public TextTransformMapping startCase()
public TextTransformMapping trim()
public TextTransformMapping upperCase()
public String getPath()
public String getTransform()
public boolean equals(Object o)
equals
in class Mapping<TextTransformMapping>
protected boolean canEqual(Object other)
canEqual
in class Mapping<TextTransformMapping>
public int hashCode()
hashCode
in class Mapping<TextTransformMapping>
Copyright © 2021. All rights reserved.