Package io.jmix.bpmflowui.util
Class CopyNameSupport
java.lang.Object
io.jmix.bpmflowui.util.CopyNameSupport
Utility class for handling copy names.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendCopySuffix(String name) Returns a name with appended copy suffixgenerateCopyNameFor(String name) Generates name with copy suffix for the provided name.getCopySuffix(String name) Returns copy suffix from the provided name.getNameWithoutSuffix(String name) Removes copy suffix from the provided name.booleanhasCopySuffix(String name) Checks whether the provided name has copy suffix.intincrementCopyName(String name) Increment copy number for the provided name.
-
Field Details
-
COPY_SUFFIX_REGEXP_TEMPLATE
- See Also:
-
-
Constructor Details
-
CopyNameSupport
-
-
Method Details
-
generateCopyNameFor
Generates name with copy suffix for the provided name.- Parameters:
name- the name to generate copy name for- Returns:
- generated name with copy suffix
-
incrementCopyName
Increment copy number for the provided name.- Parameters:
name- the name to increment copy number for- Returns:
- incremented copy number
-
getNameWithoutSuffix
Removes copy suffix from the provided name.- Parameters:
name- the name to remove copy suffix from- Returns:
- name without copy suffix
-
hasCopySuffix
Checks whether the provided name has copy suffix.- Parameters:
name- the name to check- Returns:
trueif the name has copy suffix,falseotherwise
-
getCopySuffix
Returns copy suffix from the provided name.- Parameters:
name- the name to get copy suffix from- Returns:
- copy suffix or
nullif the name does not have copy suffix - See Also:
-
appendCopySuffix
Returns a name with appended copy suffix- Parameters:
name- name to which append- Returns:
- name with appended copy suffix
-
getLocalizedCopySuffix
- Returns:
- localized copy suffix
-