Class CssLengthValueValidator
java.lang.Object
com.itextpdf.styledxmlparser.css.validate.impl.datatype.CssLengthValueValidator
- All Implemented Interfaces:
ICssDataTypeValidator
ICssDataTypeValidator implementation for numeric elements.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCssLengthValueValidator(boolean allowedNegative) Creates a newCssLengthValueValidatorinstance. -
Method Summary
-
Field Details
-
allowedNegative
private final boolean allowedNegative
-
-
Constructor Details
-
CssLengthValueValidator
public CssLengthValueValidator(boolean allowedNegative) Creates a newCssLengthValueValidatorinstance.- Parameters:
allowedNegative- is negative 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
-