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 newCssIntegerNumberValueValidatorinstance. -
Method Summary
-
Constructor Details
-
CssIntegerNumberValueValidator
public CssIntegerNumberValueValidator(boolean allowedNegative, boolean allowedZero) Creates a newCssIntegerNumberValueValidatorinstance.- 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:
-
isValidin interfaceICssDataTypeValidator - Parameters:
-
objectString- the value - Returns:
- true, if the value is a valid data type
-