public final class CssTypesValidationUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAngleValue(String value)
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 value)
Checks whether a string contains an allowed value relative to parent value.
|
static boolean |
isExValue(String value)
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 value)
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 value)
Checks whether a string contains a percentage value
|
static boolean |
isRelativeValue(String value)
Checks whether a string contains an allowed value relative to previously set value.
|
static boolean |
isRemValue(String value)
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.
|
public static boolean isAngleValue(String value)
value - the string that needs to be checkedpublic static boolean isBase64Data(String data)
data - the datapublic static boolean isColorProperty(String value)
value - the valuepublic static boolean isEmValue(String value)
value - the string that needs to be checkedpublic static boolean isExValue(String value)
value - the string that needs to be checkedpublic static boolean isMetricValue(String value)
value - the string that needs to be checkedpublic static boolean isNegativeValue(String value)
value - the string that needs to be checkedpublic static boolean isNumericValue(String value)
value - the string that needs to be checkedpublic static boolean isPercentageValue(String value)
value - the string that needs to be checkedpublic static boolean isRelativeValue(String value)
value - the string that needs to be checkedpublic static boolean isRemValue(String value)
value - the string that needs to be checkedpublic static boolean isValidNumericValue(String value)
value - the string that needs to be checkedpublic static boolean isInitialOrInheritOrUnset(String value)
value - value to checkCopyright © 1998–2020 iText Group NV. All rights reserved.