Class CssBackgroundValidator
java.lang.Object
com.itextpdf.styledxmlparser.css.validate.impl.datatype.CssBackgroundValidator
- All Implemented Interfaces:
ICssDataTypeValidator
ICssDataTypeValidator implementation for background properties.
This validator should not be used with non-background properties.-
Constructor Summary
ConstructorsConstructorDescriptionCssBackgroundValidator(String backgroundProperty) Creates a newCssBackgroundValidatorinstance. -
Method Summary
-
Constructor Details
-
CssBackgroundValidator
Creates a newCssBackgroundValidatorinstance.- Parameters:
backgroundProperty- is background property corresponding to current validator
-
-
Method Details
-
isValid
Checks if a value is a valid data type (e.g. a color, an identifier,...).- Specified by:
isValidin interfaceICssDataTypeValidator- Parameters:
objectString- the value- Returns:
- true, if the value is a valid data type
-