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 values
public void addAllowedValues(Collection<String> allowedValues)
allowedValues
- the allowed values
public boolean isValid(String objectString)
ICssDataTypeValidator
isValid
in interface ICssDataTypeValidator
objectString
- the value
Copyright © 1998–2021 iText Group NV. All rights reserved.