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