Class CssColourValidator
- java.lang.Object
- 
- com.opensymphony.xwork2.validator.validators.ValidatorSupport
- 
- com.opensymphony.xwork2.validator.validators.FieldValidatorSupport
- 
- com.atlassian.confluence.util.misc.CssColourValidator
 
 
 
- 
- All Implemented Interfaces:
- com.opensymphony.xwork2.validator.FieldValidator,- com.opensymphony.xwork2.validator.ShortCircuitableValidator,- com.opensymphony.xwork2.validator.Validator
 
 public class CssColourValidator extends com.opensymphony.xwork2.validator.validators.FieldValidatorSupportThe following are valid values for a CSS colour declaration:- Any single word with no spaces.
- # followed by 3 or 6 digits
- rgb(n, n, n)
- rgb(n%, n%, n%)
 
- 
- 
Constructor SummaryConstructors Constructor Description CssColourValidator()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancheck(String thingToCheck)Separated for testabilityvoidvalidate(Object object)- 
Methods inherited from class com.opensymphony.xwork2.validator.validators.FieldValidatorSupportgetCurrentValue, getFieldName, getValidatorType, setFieldName, setValidatorType
 - 
Methods inherited from class com.opensymphony.xwork2.validator.validators.ValidatorSupportaddActionError, addFieldError, getDefaultMessage, getFieldValue, getMessage, getMessageKey, getMessageParameters, getValidatorContext, isShortCircuit, parse, setDefaultMessage, setMessageKey, setMessageParameters, setShortCircuit, setTextProviderFactory, setValidatorContext, setValueStack
 
- 
 
-