Class TemplateMapping
java.lang.Object
com.broadleafcommerce.metadata.dsl.core.Mapping<TemplateMapping>
com.broadleafcommerce.metadata.dsl.core.extension.mappings.TemplateMapping
- All Implemented Interfaces:
Copyable<TemplateMapping>
,Serializable
An implementation of
Mapping
for transforming a text property with a template.- Author:
- Nick Crum (ncrum)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
copy()
boolean
getPath()
The name of the text property to transform.The template to apply to the text property.int
hashCode()
Sets the text property path to transform.Sets the template to apply to the text property, for example, "Clone {name}"templateTransform
(String path, String template) Sets the text property path and the template value.
-
Constructor Details
-
TemplateMapping
public TemplateMapping() -
TemplateMapping
-
-
Method Details
-
copy
- Specified by:
copy
in interfaceCopyable<TemplateMapping>
- Returns:
- a deep copy of this instance
-
path
Sets the text property path to transform.- Parameters:
path
- the property path- Returns:
- the mapping
-
template
Sets the template to apply to the text property, for example, "Clone {name}"- Parameters:
template
- the template- Returns:
- the mapping
-
templateTransform
Sets the text property path and the template value.- Parameters:
path
- the property pathtemplate
- the template- Returns:
- the mapping
-
getPath
The name of the text property to transform. -
getTemplate
The template to apply to the text property. -
equals
- Overrides:
equals
in classMapping<TemplateMapping>
-
canEqual
- Overrides:
canEqual
in classMapping<TemplateMapping>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMapping<TemplateMapping>
-