public class SingleTypeDeclarationValidator extends Object implements ICssDeclarationValidator
ICssDeclarationValidator
implementation to validate a single type.
Constructor and Description |
---|
SingleTypeDeclarationValidator(ICssDataTypeValidator dataTypeValidator)
Creates a new SingleTypeDeclarationValidator instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(CssDeclaration cssDeclaration)
Checks if a value is a valid CSS declaration.
|
public SingleTypeDeclarationValidator(ICssDataTypeValidator dataTypeValidator)
SingleTypeDeclarationValidator
instance.
dataTypeValidator
- the data type validator
public boolean isValid(CssDeclaration cssDeclaration)
ICssDeclarationValidator
isValid
in interface ICssDeclarationValidator
cssDeclaration
- the CSS declaration
Copyright © 1998–2020 iText Group NV. All rights reserved.