Class ColorValidator
- java.lang.Object
-
- org.uberfire.ext.properties.editor.model.validators.ColorValidator
-
- All Implemented Interfaces:
PropertyFieldValidator
@Portable public class ColorValidator extends Object implements PropertyFieldValidator
-
-
Field Summary
Fields Modifier and Type Field Description static List<Character>_hexLetters
-
Constructor Summary
Constructors Constructor Description ColorValidator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValidatorErrorMessage()Error message used in property editor.static booleanisValid(String aColor)booleanvalidate(Object value)Validate a field new value
-
-
-
Method Detail
-
isValid
public static boolean isValid(String aColor)
-
validate
public boolean validate(Object value)
Description copied from interface:PropertyFieldValidatorValidate a field new value- Specified by:
validatein interfacePropertyFieldValidator- Parameters:
value- The value to be validated- Returns:
- true if valid, false otherwise
-
getValidatorErrorMessage
public String getValidatorErrorMessage()
Description copied from interface:PropertyFieldValidatorError message used in property editor.- Specified by:
getValidatorErrorMessagein interfacePropertyFieldValidator- Returns:
-
-