Class RegExItem
java.lang.Object
com.e1c.langtool.storage.regex.model.RegExItem
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGets the description.Gets the groups from storage.Gets the pattern with RegEx text.getRegEx()Gets the regular expression.Gets the test string.Gets the translation template.booleanChecks if the item can apply for interface features.booleanisModel()Checks if the item can apply for model features.booleanisValid()Checks if the item is valid to use in translation.voidvoidsetDescription(String description) Sets the description.voidsetGroupsFromStorage(List<String> groupsFromStorage) Sets the groups from storage.voidsetInterface(boolean isInterface) Sets the to apply for interface features.voidsetModel(boolean model) Sets to apply for model features.voidSets the regular expression.voidsetTestString(String testString) Sets the test string.voidsetTranslation(String translation) Sets the translation template.
-
Field Details
-
PROPERTY_GROUPS_FROM_STORAGE
- See Also:
-
PROPERTY_TEST_STRING
- See Also:
-
PROPERTY_TRANSLATION
- See Also:
-
PROPERTY_INTERFACE
- See Also:
-
PROPERTY_REG_EX
- See Also:
-
PROPERTY_DESCRIPTION
- See Also:
-
PROPERTY_MODEL
- See Also:
-
-
Constructor Details
-
RegExItem
public RegExItem()
-
-
Method Details
-
addPropertyChangeListener
-
removePropertyChangeListener
-
getDescription
Gets the description.- Returns:
- the description
-
setDescription
Sets the description.- Parameters:
description- the new description
-
getRegEx
Gets the regular expression.- Returns:
- the regular expression
-
setRegEx
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
Gets the pattern with RegEx text.- Returns:
- the pattern
-
getGroupsFromStorage
Gets the groups from storage.- Returns:
- the groups from storage, never returns
null
-
setGroupsFromStorage
Sets the groups from storage.- Parameters:
groupsFromStorage- the new groups from storage
-
getTranslation
Gets the translation template.- Returns:
- the translation template
-
setTranslation
Sets the translation template.- Parameters:
translation- the new translation template
-
getTestString
Gets the test string.- Returns:
- the test string
-
setTestString
Sets the test string.- Parameters:
testString- the new test string
-