Interface IFormItemNameGenerator
-
public interface IFormItemNameGenerator
Generator of unique names of form items.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
generateUniqueName(String candidate, ItemType itemtype, FormVisualEntity context, Form form, ScriptVariant scriptVariant)
Generates an unique name.String
generateUniqueName(String candidate, FormItem item, FormVisualEntity context, Form form, ScriptVariant scriptVariant, String itemName)
Generates an unique name.
-
-
-
Method Detail
-
generateUniqueName
String generateUniqueName(String candidate, FormItem item, FormVisualEntity context, Form form, ScriptVariant scriptVariant, String itemName)
Generates an unique name.If the specified
candidate
isnull
or empty then a default name will be used, otherwise the initial custom name will be used.- Parameters:
candidate
- the candidate for a name, can benull
or empty.item
- the item for which to create unique name, can not benull
.context
- the object in which the current item lies, can not benull
.form
- the form, can not benull
.scriptVariant
- the script variant, can not benull
.itemName
- the user defined item name, can benull
.- Returns:
- the unique name, vener
null
or empty.
-
generateUniqueName
String generateUniqueName(String candidate, ItemType itemtype, FormVisualEntity context, Form form, ScriptVariant scriptVariant)
Generates an unique name.If the specified
candidate
isnull
or empty then a default name will be used, otherwise the initial custom name will be used.- Parameters:
candidate
- the candidate for a name, can benull
or empty.itemtype
- the item type for which to create unique name, can not benull
.context
- the object in which the current item lies, can not benull
.form
- the form, can not benull
.scriptVariant
- the script variant, can not benull
.- Returns:
- the unique name, vener
null
or empty.
-
-