public class TemplateMapping extends Mapping<TemplateMapping> implements Serializable
Mapping
for transforming a text property with a template.Constructor and Description |
---|
TemplateMapping() |
TemplateMapping(TemplateMapping mapping) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
TemplateMapping |
copy() |
boolean |
equals(Object o) |
String |
getPath()
The name of the text property to transform.
|
String |
getTemplate()
The template to apply to the text property.
|
int |
hashCode() |
TemplateMapping |
path(String path)
Sets the text property path to transform.
|
TemplateMapping |
template(String template)
Sets the template to apply to the text property, for example, "Clone {name}"
|
TemplateMapping |
templateTransform(String path,
String template)
Sets the text property path and the template value.
|
public TemplateMapping()
public TemplateMapping(TemplateMapping mapping)
public TemplateMapping copy()
copy
in interface Copyable<TemplateMapping>
public TemplateMapping path(String path)
path
- the property pathpublic TemplateMapping template(String template)
template
- the templatepublic TemplateMapping templateTransform(String path, String template)
path
- the property pathtemplate
- the templatepublic String getPath()
public String getTemplate()
public boolean equals(Object o)
equals
in class Mapping<TemplateMapping>
protected boolean canEqual(Object other)
canEqual
in class Mapping<TemplateMapping>
public int hashCode()
hashCode
in class Mapping<TemplateMapping>
Copyright © 2021. All rights reserved.