Class CssDeclarationValidationMaster

java.lang.Object
com.itextpdf.styledxmlparser.css.validate.CssDeclarationValidationMaster

public class CssDeclarationValidationMaster extends Object
Class that holds CSS declaration validator.
  • Method Details

    • checkDeclaration

      public static boolean checkDeclaration (CssDeclaration declaration)
      Checks a CSS declaration.
      Parameters:
      declaration - the CSS declaration
      Returns:
      true, if the validation was successful
    • setValidator

      public static void setValidator (ICssDeclarationValidator validator)
      Sets new validator for CSS declarations.
      Parameters:
      validator - validator for CSS declarations: use CssDefaultValidator instance to use default validation, use CssDeviceCmykAwareValidator instance to support device-cmyk feature