Interface UniqueKeyGenerator
- All Known Subinterfaces:
UniqueUIKeyGenerator
- All Known Implementing Classes:
UniqueKeyGeneratorImpl,UniqueUIKeyGeneratorImpl
public interface UniqueKeyGenerator
Helper class to generate unique UI keys.
-
Method Summary
Modifier and TypeMethodDescriptionextractInstanceNameFromGroupId(String groupId) generateCsticId(CsticModel model, CsticValueModel value, String prefix) Generates a Unique Key for a cstic, o a cstic value, if provided.generateGroupIdForGroup(InstanceModel instance, CsticGroup csticModelGroup) generateGroupIdForInstance(InstanceModel instance) generateId(CsticQualifier csticQualifier) creates a cstic ui key from the provided componentsretrieveGroupName(String uiGroupId) retrieveInstanceId(String uiGroupId) splits the given cstic UI key into its components
-
Method Details
-
generateGroupIdForInstance
- Parameters:
instance- instance data- Returns:
- unique key for a UIGroup representing an Instance
-
generateGroupIdForGroup
- Parameters:
instance- instance the group belongs tocsticModelGroup- group data- Returns:
- unique key for a UIGroup representing an Group
-
retrieveInstanceId
- Parameters:
uiGroupId- UIGroup id- Returns:
- extract instance id from the UIGroup Id
-
retrieveGroupName
- Parameters:
uiGroupId- UIGroup id- Returns:
- extract group name from the UIGroup Id
-
generateCsticId
Generates a Unique Key for a cstic, o a cstic value, if provided.- Parameters:
model- cstic modelvalue- cstic value model. Ifnullthe key is only specific for the csticprefix- key prefix containing group and/or instance components- Returns:
- unique key
-
splitId
splits the given cstic UI key into its components- Parameters:
csticUiKey-- Returns:
- a csticQualifier
-
generateId
creates a cstic ui key from the provided components- Parameters:
csticQualifier-- Returns:
- unique Key
-
extractInstanceNameFromGroupId
- Parameters:
groupId- group id- Returns:
- extracted instance name from group id
-
getInstanceSeparator
String getInstanceSeparator()- Returns:
- the instance separator
-
getKeySeparator
String getKeySeparator()- Returns:
- the key separator
-
getKeySeparatorSplit
String getKeySeparatorSplit()- Returns:
- the key separator for split statement
-