Class UniqueTranslationValidator
java.lang.Object
com.e1c.langtool.internal.storage.UniqueTranslationValidator
- All Implemented Interfaces:
FeatureValueValidator
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.e1c.langtool.settings.FeatureValueValidator
FeatureValueValidator.ValidationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.core.runtime.IStatusisValid(String value, FeatureValueValidator.ValidationContext context) Returns a string indicating whether the given value is valid;nullmeans valid, and non-nullmeans invalid, with the result being the error message to display to the end user.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.e1c.langtool.settings.FeatureValueValidator
preprocessValue
-
Constructor Details
-
UniqueTranslationValidator
public UniqueTranslationValidator()
-
-
Method Details
-
isValid
public org.eclipse.core.runtime.IStatus isValid(String value, FeatureValueValidator.ValidationContext context) Description copied from interface:FeatureValueValidatorReturns a string indicating whether the given value is valid;nullmeans valid, and non-nullmeans invalid, with the result being the error message to display to the end user.It is the responsibility of the implementor to fully format the message before returning it.
- Specified by:
isValidin interfaceFeatureValueValidator- Parameters:
value- the translated value to be validated- Returns:
- the error message, or
nullindicating that the value is valid
-