Class VariationDefinition
- java.lang.Object
-
- com.flowable.template.api.repository.VariationDefinition
-
public class VariationDefinition extends Object
A variation describes a single variation used for aTemplateDefinition
having multiple variations (e.g. different languages).- Author:
- Micha Kiener
-
-
Field Summary
Fields Modifier and Type Field Description protected String
defaultValue
Returns the default value for the key (used when no value is set or the specified variation does not exist)protected String
description
The optional description for this variation, describing its meaning if needed.protected String
key
Returns the variation key which is later used when mapped to variation data coming from another source (e.g.protected String
name
The name of the variation (e.g.static String
NONE_VALUE
The value to be used for a missing variation value (e.g.static String
VARIATION_DELIMINATOR
The deliminator used when composing a combined variation key.
-
Constructor Summary
Constructors Constructor Description VariationDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefaultValue()
String
getDescription()
String
getKey()
String
getName()
void
setDefaultValue(String defaultValue)
void
setDescription(String description)
void
setKey(String key)
void
setName(String name)
-
-
-
Field Detail
-
NONE_VALUE
public static final String NONE_VALUE
The 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 String VARIATION_DELIMINATOR
The deliminator used when composing a combined variation key.- See Also:
- Constant Field Values
-
name
protected String name
The name of the variation (e.g. 'Language').
-
key
protected String key
Returns 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 String defaultValue
Returns the default value for the key (used when no value is set or the specified variation does not exist)
-
description
protected String description
The optional description for this variation, describing its meaning if needed.
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getKey
public String getKey()
-
setKey
public void setKey(String key)
-
getDefaultValue
public String getDefaultValue()
-
setDefaultValue
public void setDefaultValue(String defaultValue)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
-