Class VariationDefinition
java.lang.Object
com.flowable.template.api.repository.VariationDefinition
public class VariationDefinition
extends java.lang.Object
A variation describes a single variation used for a
TemplateDefinition having multiple variations (e.g. different languages).- Author:
- Micha Kiener
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringdefaultValueReturns the default value for the key (used when no value is set or the specified variation does not exist)protected java.lang.StringdescriptionThe optional description for this variation, describing its meaning if needed.protected java.lang.StringkeyReturns the variation key which is later used when mapped to variation data coming from another source (e.g.protected java.lang.StringnameThe name of the variation (e.g.static java.lang.StringNONE_VALUEThe value to be used for a missing variation value (e.g.static java.lang.StringVARIATION_DELIMINATORThe deliminator used when composing a combined variation key. -
Constructor Summary
Constructors Constructor Description VariationDefinition() -
Method Summary
Modifier and Type Method Description java.lang.StringgetDefaultValue()java.lang.StringgetDescription()java.lang.StringgetKey()java.lang.StringgetName()voidsetDefaultValue(java.lang.String defaultValue)voidsetDescription(java.lang.String description)voidsetKey(java.lang.String key)voidsetName(java.lang.String name)
-
Field Details
-
NONE_VALUE
public static final java.lang.String NONE_VALUEThe value to be used for a missing variation value (e.g. 'none' instead of an empty language value or country value, etc).- See Also:
- Constant Field Values
-
VARIATION_DELIMINATOR
public static final java.lang.String VARIATION_DELIMINATORThe deliminator used when composing a combined variation key.- See Also:
- Constant Field Values
-
name
protected java.lang.String nameThe name of the variation (e.g. 'Language'). -
key
protected java.lang.String keyReturns the variation key which is later used when mapped to variation data coming from another source (e.g. from a process or case instance, etc). -
defaultValue
protected java.lang.String defaultValueReturns the default value for the key (used when no value is set or the specified variation does not exist) -
description
protected java.lang.String descriptionThe optional description for this variation, describing its meaning if needed.
-
-
Constructor Details
-
VariationDefinition
public VariationDefinition()
-
-
Method Details
-
getName
public java.lang.String getName() -
setName
public void setName(java.lang.String name) -
getKey
public java.lang.String getKey() -
setKey
public void setKey(java.lang.String key) -
getDefaultValue
public java.lang.String getDefaultValue() -
setDefaultValue
public void setDefaultValue(java.lang.String defaultValue) -
getDescription
public java.lang.String getDescription() -
setDescription
public void setDescription(java.lang.String description)
-