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 newCssBackgroundValidator
instance. -
Method Summary
-
Constructor Details
-
CssBackgroundValidator
Creates a newCssBackgroundValidator
instance.- 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:
-
isValid
in interfaceICssDataTypeValidator
- Parameters:
-
objectString
- the value - Returns:
- true, if the value is a valid data type
-