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 checked
public static boolean isBase64Data(String data)
data
- the data
public static boolean isColorProperty(String value)
value
- the value
public static boolean isEmValue(String value)
value
- the string that needs to be checked
public static boolean isExValue(String value)
value
- the string that needs to be checked
public static boolean isMetricValue(String value)
value
- 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 value)
value
- the string that needs to be checked
public static boolean isRelativeValue(String value)
value
- the string that needs to be checked
public static boolean isRemValue(String value)
value
- 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
Copyright © 1998–2021 iText Group NV. All rights reserved.