Class CssIntegerNumberValueValidator
java.lang.Object
com.itextpdf.styledxmlparser.css.validate.impl.datatype.CssIntegerNumberValueValidator
- All Implemented Interfaces:
-
ICssDataTypeValidator
ICssDataTypeValidator
implementation for integer numeric elements.
-
Constructor Summary
ConstructorsConstructorDescriptionCssIntegerNumberValueValidator
(boolean allowedNegative, boolean allowedZero) Creates a newCssIntegerNumberValueValidator
instance. -
Method Summary
-
Constructor Details
-
CssIntegerNumberValueValidator
public CssIntegerNumberValueValidator(boolean allowedNegative, boolean allowedZero) Creates a newCssIntegerNumberValueValidator
instance.- Parameters:
-
allowedNegative
- is negative value allowed -
allowedZero
- 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
-