- All Implemented Interfaces:
Serializable
,Comparable<FacesSchema>
,Constable
Central place to store all data regarding Faces and related schemas and their namespaces.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Constants for individual schema filesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic FacesSchema
fromDocumentId
(String documentNS, String version, String localName) Maps a document id (coordinates) to a logical faces schema version.static FacesSchema
Returns the enum constant of this class with the specified name.static FacesSchema[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FACES_11
-
FACES_12
-
FACES_20
-
FACES_21
-
FACES_22
-
FACES_23
-
FACES_30
-
FACES_40
-
FACELET_TAGLIB_20
-
FACELET_TAGLIB_22
-
FACELET_TAGLIB_23
-
FACELET_TAGLIB_30
-
FACELET_TAGLIB_40
-
-
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
-
fromDocumentId
Maps a document id (coordinates) to a logical faces schema version.E.g. "https://jakarta.ee/xml/ns/jakartaee", "4.0", "faces-config" maps to
FACES_40
- Parameters:
documentNS
- document's namespaceversion
- document's versionlocalName
- document's root element- Returns:
- the matching faces schema
-
loadSchema
-