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 newCssBackgroundValidatorinstance. -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancheckMultiValuePositionXY(List<String> propertyValues, int index) private booleanprivate static booleanprivate booleanbooleanChecks if a value is a valid data type (e.g.private booleanisValidProperty(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 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
-
isValidProperty
-
checkMultiValuePositionXY
-
isMultiValueAllowedForThisType
private boolean isMultiValueAllowedForThisType() -
isMultiValueAllowedForThisValue
-
isPropertyValueCorrespondsPropertyType
-