Class CssDeclarationValidationMaster
java.lang.Object
com.itextpdf.styledxmlparser.css.validate.CssDeclarationValidationMaster
Class that holds CSS declaration validator.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkDeclaration
(CssDeclaration declaration) Checks a CSS declaration.static void
setValidator
(ICssDeclarationValidator validator) Sets new validator for CSS declarations.
-
Method Details
-
checkDeclaration
Checks a CSS declaration.- Parameters:
-
declaration
- the CSS declaration - Returns:
- true, if the validation was successful
-
setValidator
Sets new validator for CSS declarations.- Parameters:
-
validator
- validator for CSS declarations: useCssDefaultValidator
instance to use default validation, useCssDeviceCmykAwareValidator
instance to support device-cmyk feature
-