public class MultiTypeDeclarationValidator extends Object implements ICssDeclarationValidator
ICssDeclarationValidator
implementation in case multiple types have to be checked.
Constructor and Description |
---|
MultiTypeDeclarationValidator(ICssDataTypeValidator... allowedTypes)
Creates a new MultiTypeDeclarationValidator instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(CssDeclaration cssDeclaration)
Checks if a value is a valid CSS declaration.
|
public MultiTypeDeclarationValidator(ICssDataTypeValidator... allowedTypes)
MultiTypeDeclarationValidator
instance.
allowedTypes
- the allowed types
public boolean isValid(CssDeclaration cssDeclaration)
ICssDeclarationValidator
isValid
in interface ICssDeclarationValidator
cssDeclaration
- the CSS declaration
Copyright © 1998–2019 iText Group NV. All rights reserved.