Interface TextModuleModifier

All Superinterfaces:
Modifier<TextModule>, TextModuleNodeModifier<TextModule>

public interface TextModuleModifier extends TextModuleNodeModifier<TextModule>
Defines an API to modify an instance of type TextModule
Since:
10.0.206
  • Method Details

    • setName

      Description copied from interface: TextModuleNodeModifier

      Change the name of the associated TextModuleNode.

      The change is applied after the Modifier.write() method is called.

      Specified by:
      setName in interface TextModuleNodeModifier<TextModule>
      Parameters:
      name - the new name as String
      Returns:
      the TextModuleNodeModifier
      Throws:
      ValidationException - if the new name is invalid
    • isVisible

      boolean isVisible()
      Get the current visibility which is held in this TextModuleNodeModifier.
      Returns:
      true if visible, otherwise false
      Since:
      10.0.206
    • setVisible

      TextModuleModifier setVisible(boolean visible) throws ValidationException

      Change the visibility.

      The change is applied after the Modifier.write() method is called.

      Parameters:
      visible - the new visibility
      Returns:
      the TextModuleNodeModifier
      Throws:
      ValidationException - if the change is invalid
      Since:
      10.0.206
    • validateVisible

      boolean validateVisible(boolean visible) throws ValidationException
      Validate the given visibility.
      Parameters:
      visible - the new visibility
      Returns:
      true if the change is valid
      Throws:
      ValidationException - if the change is invalid
      Since:
      10.0.206
    • getDescription

      String getDescription()
      Get the current textmodule description which is held in this TextModuleModifier.
      Returns:
      the description as String
      Since:
      10.0.206
    • setDescription

      TextModuleModifier setDescription(String description) throws ValidationException

      Change the description of the associated TextModule.

      The change is applied after the Modifier.write() method is called.

      Parameters:
      description - the new description as String
      Returns:
      the TextModuleModifier
      Throws:
      ValidationException - if the new description is invalid
      Since:
      10.0.206
    • validateDescription

      boolean validateDescription(String description) throws ValidationException
      Validate the given description.
      Parameters:
      description - the description to validate as String
      Returns:
      true if the description is valid
      Throws:
      ValidationException - if the description is invalid
      Since:
      10.0.206
    • getLanguageCode

      String getLanguageCode()
      Returns:
      the current ISO 639-1 language code which is held in this TextModuleModifier.
      Since:
      10.0.206
    • setLanguageCode

      TextModuleModifier setLanguageCode(String languageCode) throws ValidationException

      Change the ISO 639-1 language code of the associated TextModule.

      The change is applied after the Modifier.write() method is called.

      Parameters:
      languageCode - the new ISO 639-1 language code as String or null to remove the language
      Returns:
      the TextModuleModifier
      Throws:
      ValidationException - if the new ISO 639-1 language code is invalid
      Since:
      10.0.206
    • validateLanguageCode

      boolean validateLanguageCode(String languageCode) throws ValidationException
      Validate the given ISO 639-1 language code.
      Parameters:
      languageCode - the ISO 639-1 language code to validate as String
      Returns:
      true if the ISO 639-1 language code is valid
      Throws:
      ValidationException - if the ISO 639-1 language code is invalid
      Since:
      10.0.206
    • getShortcut

      String getShortcut()
      Returns:
      the current shortcut which is held in this TextModuleModifier.
      Since:
      10.0.206
    • setShortcut

      TextModuleModifier setShortcut(String shortcut) throws ValidationException

      Change the shortcut of the associated TextModule.

      The change is applied after the Modifier.write() method is called.

      Parameters:
      shortcut - the new shortcut as String
      Returns:
      the TextModuleModifier
      Throws:
      ValidationException - if the new shortcut is invalid
      Since:
      10.0.206
    • validateShortcut

      boolean validateShortcut(String shortcut) throws ValidationException
      Validate the given shortcut.
      Parameters:
      shortcut - the shortcut to validate as String
      Returns:
      true if the shortcut is valid
      Throws:
      ValidationException - if the shortcut is invalid
      Since:
      10.0.206
    • isTopTextRelevant

      boolean isTopTextRelevant()
      Returns:
      the current top text relevancy which is held in this TextModuleModifier.
      Since:
      10.0.206
    • setTopTextRelevant

      TextModuleModifier setTopTextRelevant(boolean topTextRelevant) throws ValidationException

      Change the top text relevancy of the associated TextModule.

      The change is applied after the Modifier.write() method is called.

      Parameters:
      topTextRelevant - the new top text relevancy
      Returns:
      the TextModuleModifier
      Throws:
      ValidationException - if the new top text relevancy is invalid
      Since:
      10.0.206
    • validateTopTextRelevant

      boolean validateTopTextRelevant(boolean topTextRelevant) throws ValidationException
      Validate the given top text relevancy.
      Parameters:
      topTextRelevant - the top text relevancy to validate
      Returns:
      true if the top text relevancy is valid
      Throws:
      ValidationException - if the top text relevancy is invalid
      Since:
      10.0.206
    • getContent

      String getContent()
      Returns:
      the current content which is held in this TextModuleModifier.
      Since:
      10.0.206
    • setContent

      TextModuleModifier setContent(String content) throws ValidationException

      Change the content of the associated TextModule.

      The change is applied after the Modifier.write() method is called.

      Parameters:
      content - the new content as String
      Returns:
      the TextModuleModifier
      Throws:
      ValidationException - if the new content is invalid
      Since:
      10.0.206
    • validateContent

      boolean validateContent(String content) throws ValidationException
      Validate the given content.
      Parameters:
      content - the content to validate
      Returns:
      true if the content is valid
      Throws:
      ValidationException - if the content is invalid
      Since:
      10.0.206
    • getLastChangeDateWithNotify

      Optional<Date> getLastChangeDateWithNotify()
      Returns:
      the current optional last save date with notify agents activated which is held in this TextModuleModifier.
      Since:
      11.32
    • activateNotification

      TextModuleModifier activateNotification()

      Set the last save date with notify agents activated to the time of persisting the associated TextModule.

      The change is applied after the Modifier.write() method is called.

      Returns:
      the TextModuleModifier
      Since:
      11.32