Class SingleTypeDeclarationValidator
java.lang.Object
com.itextpdf.styledxmlparser.css.validate.impl.declaration.SingleTypeDeclarationValidator
- All Implemented Interfaces:
-
ICssDeclarationValidator
ICssDeclarationValidator
implementation to validate a single type.
-
Constructor Summary
ConstructorDescriptionSingleTypeDeclarationValidator
(ICssDataTypeValidator dataTypeValidator) Creates a newSingleTypeDeclarationValidator
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isValid
(CssDeclaration cssDeclaration) Checks if a value is a valid CSS declaration.
-
Constructor Details
-
SingleTypeDeclarationValidator
Creates a newSingleTypeDeclarationValidator
instance.- Parameters:
-
dataTypeValidator
- the data type validator
-
-
Method Details
-
isValid
Description copied from interface:ICssDeclarationValidator
Checks if a value is a valid CSS declaration.- Specified by:
-
isValid
in interfaceICssDeclarationValidator
- Parameters:
-
cssDeclaration
- the CSS declaration - Returns:
- true, if the value is a valid CSS declaration
-