Class CssIntegerNumberValueValidator
java.lang.Object
com.itextpdf.styledxmlparser.css.validate.impl.datatype.CssIntegerNumberValueValidator
- All Implemented Interfaces:
ICssDataTypeValidator
ICssDataTypeValidator
implementation for integer numeric elements.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final boolean
-
Constructor Summary
ConstructorsConstructorDescriptionCssIntegerNumberValueValidator
(boolean allowedNegative, boolean allowedZero) Creates a newCssIntegerNumberValueValidator
instance. -
Method Summary
-
Field Details
-
allowedNegative
private final boolean allowedNegative -
allowedZero
private final boolean allowedZero
-
-
Constructor Details
-
CssIntegerNumberValueValidator
public CssIntegerNumberValueValidator(boolean allowedNegative, boolean allowedZero) Creates a newCssIntegerNumberValueValidator
instance.- Parameters:
allowedNegative
- is negative value allowedallowedZero
- is zero value allowed
-
-
Method Details
-
isValid
Checks if a value is a valid data type (e.g. a color, an identifier,...).- Specified by:
isValid
in interfaceICssDataTypeValidator
- Parameters:
objectString
- the value- Returns:
- true, if the value is a valid data type
-