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.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCssBackgroundValidator
(String backgroundProperty) Creates a newCssBackgroundValidator
instance. -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
checkMultiValuePositionXY
(List<String> propertyValues, int index) private boolean
private static boolean
private boolean
boolean
Checks if a value is a valid data type (e.g.private boolean
isValidProperty
(List<String> propertyValues, int index)
-
Field Details
-
MAX_AMOUNT_OF_VALUES
private static final int MAX_AMOUNT_OF_VALUES- See Also:
-
backgroundProperty
-
-
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
-
isValidProperty
-
checkMultiValuePositionXY
-
isMultiValueAllowedForThisType
private boolean isMultiValueAllowedForThisType() -
isMultiValueAllowedForThisValue
-
isPropertyValueCorrespondsPropertyType
-