- All Implemented Interfaces:
Serializable
,Comparable<CSSValueSyntax.Category>
,java.lang.constant.Constable
- Enclosing interface:
CSSValueSyntax
The syntax category.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMatches any angle.Matches any color.Matches any counter (<counter()> | <counters()>
).Matches any valid custom identifier.Matches a flexible length.Matches any frequency.The specific identifier returned bygetName()
.Matches any image.Matches any integer.Matches any length.Matches any length or percentage.Matches any number.Matches any percentage.Matches any resolution.Matches any string.Matches any time.Matches any transform function, liketranslate()
orscale()
.Matches a list of validtransformFunction
values.Matches an unicode range.The universal syntax.Matches any url. -
Method Summary
Modifier and TypeMethodDescriptionstatic CSSValueSyntax.Category
Returns the enum constant of this class with the specified name.static CSSValueSyntax.Category[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
universal
The universal syntax.*
Matches as
TRUE
for all values except those of typeUNKNOWN
(in which case givesPENDING
). -
length
Matches any length.<length>
-
lengthPercentage
Matches any length or percentage.<length-percentage>
-
percentage
Matches any percentage.<percentage>
-
number
Matches any number.<number>
-
color
Matches any color.<color>
-
image
Matches any image.<image>
-
url
Matches any url.<url>
-
integer
Matches any integer.<integer>
-
angle
Matches any angle.<angle>
-
time
Matches any time.<time>
-
frequency
Matches any frequency.<frequency>
-
flex
Matches a flexible length.<flex>
-
resolution
Matches any resolution.<resolution>
-
unicodeRange
Matches an unicode range.<unicode-range>
-
transformFunction
Matches any transform function, liketranslate()
orscale()
.<transform-function>
-
transformList
Matches a list of validtransformFunction
values.<transform-list>
is a pre-multiplied data type name equivalent to<transform-function>+
. -
string
Matches any string.<string>
-
counter
Matches any counter (<counter()> | <counters()>
).<counter>
-
customIdent
Matches any valid custom identifier.<custom-ident>
-
IDENT
The specific identifier returned bygetName()
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-