public class CssEnumValidator extends Object implements ICssDataTypeValidator
ICssDataTypeValidator implementation for elements in an enumeration.| Constructor and Description |
|---|
CssEnumValidator(String... allowedValues)
Creates a new
CssEnumValidator instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllowedValues(Collection<String> allowedValues)
Adds new allowed values to the allowedValues.
|
boolean |
isValid(String objectString)
Checks if a value is a valid data type (e.g.
|
public CssEnumValidator(String... allowedValues)
CssEnumValidator instance.allowedValues - the allowed valuespublic void addAllowedValues(Collection<String> allowedValues)
allowedValues - the allowed valuespublic boolean isValid(String objectString)
ICssDataTypeValidatorisValid in interface ICssDataTypeValidatorobjectString - the valueCopyright © 1998–2020 iText Group NV. All rights reserved.