Interface TextModuleNodeModifier<T extends TextModuleNode & MasterEntity>
- Type Parameters:
T- the type of text module node modified by this modifier
- All Superinterfaces:
Modifier<T>
- All Known Subinterfaces:
TextModuleFirstLevelGroupModifier,TextModuleGroupModifier<T>,TextModuleModifier,TextModuleSecondLevelGroupModifier
public interface TextModuleNodeModifier<T extends TextModuleNode & MasterEntity>
extends Modifier<T>
Defines an API to modify an instance of type
TextModuleNode- Since:
- 10.0.206
-
Method Summary
Modifier and TypeMethodDescriptionGet the current external id which is held in thisTextModuleNodeModifier.getName()Get the current textmodule node name which is held in thisTextModuleNodeModifier.setExternalId(String externalId) Change the external id of the associatedTextModuleNode.Change the name of the associatedTextModuleNode.booleanvalidateExternalId(String externalId) Validate the given external id.booleanvalidateName(String name) Validate the given name.
-
Method Details
-
getName
String getName()Get the current textmodule node name which is held in thisTextModuleNodeModifier.- Returns:
- the name as String
- Since:
- 10.0.206
-
setName
Change the name of the associated
TextModuleNode.The change is applied after the
Modifier.write()method is called.- Parameters:
name- the new name as String- Returns:
- the
TextModuleNodeModifier - Throws:
ValidationException- if the new name is invalid- Since:
- 10.0.206
-
validateName
Validate the given name.- Parameters:
name- the name to validate as String- Returns:
- true if the name is valid
- Throws:
ValidationException- if the name is invalid- Since:
- 10.0.206
-
getExternalId
String getExternalId()Get the current external id which is held in thisTextModuleNodeModifier.- Returns:
- the external id as String, or null if none is set
- Since:
- 13.14
-
setExternalId
Change the external id of the associated
TextModuleNode.The change is applied after the
Modifier.write()method is called.- Parameters:
externalId- the new external id as String, or null or an empty string to remove it- Returns:
- the
TextModuleNodeModifier - Throws:
ValidationException- if the new external id is invalid (its UTF-8 encoding exceeds 256 bytes, i.e. multi-byte characters count as more than one byte, or it is already used by another text module node)- Since:
- 13.14
-
validateExternalId
Validate the given external id.- Parameters:
externalId- the external id to validate as String- Returns:
- true if the external id is valid
- Throws:
ValidationException- if the external id is invalid (its UTF-8 encoding exceeds 256 bytes, i.e. multi-byte characters count as more than one byte, or it is already used by another text module node)- Since:
- 13.14
-