Class RegExItem

java.lang.Object
com.e1c.langtool.storage.regex.model.RegExItem
All Implemented Interfaces:
Serializable

public class RegExItem extends Object implements Serializable
See Also:
  • Field Details

  • Constructor Details

    • RegExItem

      public RegExItem()
  • Method Details

    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener listener)
    • getDescription

      public String getDescription()
      Gets the description.
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Sets the description.
      Parameters:
      description - the new description
    • getRegEx

      public String getRegEx()
      Gets the regular expression.
      Returns:
      the regular expression
    • setRegEx

      public void setRegEx(String regEx)
      Sets the regular expression.
      Parameters:
      regEx - the new regular expression
    • isModel

      public boolean isModel()
      Checks if the item can apply for model features.
      Returns:
      true, if it is applicable for model features
    • setModel

      public void setModel(boolean model)
      Sets to apply for model features.
      Parameters:
      model - the new flag for model features
    • isInterface

      public boolean isInterface()
      Checks if the item can apply for interface features.
      Returns:
      true, if it is applicable for interface features
    • setInterface

      public void setInterface(boolean isInterface)
      Sets the to apply for interface features.
      Parameters:
      isInterface - the new interface
    • isValid

      public boolean isValid()
      Checks if the item is valid to use in translation.
      Returns:
      true, if item is valid
    • getPattern

      public Pattern getPattern()
      Gets the pattern with RegEx text.
      Returns:
      the pattern
    • getGroupsFromStorage

      public List<String> getGroupsFromStorage()
      Gets the groups from storage.
      Returns:
      the groups from storage, never returns null
    • setGroupsFromStorage

      public void setGroupsFromStorage(List<String> groupsFromStorage)
      Sets the groups from storage.
      Parameters:
      groupsFromStorage - the new groups from storage
    • getTranslation

      public String getTranslation()
      Gets the translation template.
      Returns:
      the translation template
    • setTranslation

      public void setTranslation(String translation)
      Sets the translation template.
      Parameters:
      translation - the new translation template
    • getTestString

      public String getTestString()
      Gets the test string.
      Returns:
      the test string
    • setTestString

      public void setTestString(String testString)
      Sets the test string.
      Parameters:
      testString - the new test string