public final class CssTypesValidationUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
containsInitialOrInheritOrUnset(String value)
Checks if value contains initial, inherit or unset.
|
static boolean |
isAngleValue(String valueArgument)
Checks whether a string contains an allowed metric unit in HTML/CSS; rad, deg and grad.
|
static boolean |
isBase64Data(String data)
Checks if a data is base 64 encoded.
|
static boolean |
isColorProperty(String value)
Checks if a value is a color property.
|
static boolean |
isEmValue(String valueArgument)
Checks whether a string contains an allowed value relative to parent value.
|
static boolean |
isExValue(String valueArgument)
Checks whether a string contains an allowed value relative to element font height.
|
static boolean |
isInitialOrInheritOrUnset(String value)
Checks if value is initial, inherit or unset.
|
static boolean |
isMetricValue(String valueArgument)
Checks whether a string contains an allowed metric unit in HTML/CSS; px, in, cm, mm, pc, Q or pt.
|
static boolean |
isNegativeValue(String value)
Checks whether a string matches a negative value (e.g.
|
static boolean |
isNumericValue(String value)
Checks whether a string matches a numeric value (e.g.
|
static boolean |
isPercentageValue(String valueArgument)
Checks whether a string contains a percentage value
|
static boolean |
isRelativeValue(String valueArgument)
Checks whether a string contains an allowed value relative to previously set value.
|
static boolean |
isRemValue(String valueArgument)
Checks whether a string contains an allowed value relative to previously set root value.
|
static boolean |
isValidNumericValue(String value)
Checks if a string is in a valid format.
|
static boolean |
isZero(String value)
Checks whether a string contains a zero.
|
public static boolean isAngleValue(String valueArgument)
valueArgument
- the string that needs to be checked
public static boolean isBase64Data(String data)
data
- the data
public static boolean isColorProperty(String value)
value
- the value
public static boolean isEmValue(String valueArgument)
valueArgument
- the string that needs to be checked
public static boolean isExValue(String valueArgument)
valueArgument
- the string that needs to be checked
public static boolean isMetricValue(String valueArgument)
valueArgument
- the string that needs to be checked
public static boolean isNegativeValue(String value)
value
- the string that needs to be checked
public static boolean isNumericValue(String value)
value
- the string that needs to be checked
public static boolean isPercentageValue(String valueArgument)
valueArgument
- the string that needs to be checked
public static boolean isRelativeValue(String valueArgument)
valueArgument
- the string that needs to be checked
public static boolean isRemValue(String valueArgument)
valueArgument
- the string that needs to be checked
public static boolean isValidNumericValue(String value)
value
- the string that needs to be checked
public static boolean isInitialOrInheritOrUnset(String value)
value
- value to check
public static boolean containsInitialOrInheritOrUnset(String value)
value
- value to check
public static boolean isZero(String value)
value
- the string that needs to be checked
Copyright © 1998–2023 iText Group NV. All rights reserved.