Class CssDefaultValidator
java.lang.Object
com.itextpdf.styledxmlparser.css.validate.impl.CssDefaultValidator
- All Implemented Interfaces:
-
ICssDeclarationValidator
- Direct Known Subclasses:
-
CssDeviceCmykAwareValidator
Class that bundles all the CSS declaration validators. It validates CSS declarations against the accepted html/css standard.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Map<String,
ICssDeclarationValidator> A map containing all the CSS declaration validators. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isValid
(CssDeclaration declaration) Validates a CSS declaration.
-
Field Details
-
defaultValidators
A map containing all the CSS declaration validators.
-
-
Constructor Details
-
CssDefaultValidator
public CssDefaultValidator()
-
-
Method Details
-
isValid
Validates a CSS declaration.- Specified by:
-
isValid
in interfaceICssDeclarationValidator
- Parameters:
-
declaration
- the CSS declaration - Returns:
- true, if the validation was successful
-