Class CamelCaseContentValidator
java.lang.Object
com.e1c.langtool.v8.dt.validation.AbstractNamedValidator
com.e1c.langtool.v8.dt.validation.CamelCaseContentValidator
- All Implemented Interfaces:
FeatureValueValidator
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.e1c.langtool.settings.FeatureValueValidator
FeatureValueValidator.ValidationContext -
Field Summary
Fields inherited from class com.e1c.langtool.v8.dt.validation.AbstractNamedValidator
DOT_SPLIT, NAME_REPLACE_CHARS -
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.protected booleanisValidFeatureSettings(FeatureSettings featureSettings) preprocessValue(String value, FeatureValueValidator.ValidationContext context) Preprocess the value before validation and set to translation storage.Methods inherited from class com.e1c.langtool.v8.dt.validation.AbstractNamedValidator
isValidName
-
Constructor Details
-
CamelCaseContentValidator
public CamelCaseContentValidator()
-
-
Method Details
-
isValidFeatureSettings
- Specified by:
isValidFeatureSettingsin classAbstractNamedValidator
-
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- Overrides:
isValidin classAbstractNamedValidator- Parameters:
value- the translated value to be validated- Returns:
- the error message, or
nullindicating that the value is valid
-
preprocessValue
Description copied from interface:FeatureValueValidatorPreprocess the value before validation and set to translation storage.- Specified by:
preprocessValuein interfaceFeatureValueValidator- Overrides:
preprocessValuein classAbstractNamedValidator- Parameters:
value- the value to be processingcontext- the context- Returns:
- the processed string value
-