Package org.faceless.publisher.ext
Enum Class HtmlNamespaceExtension.Mode
- All Implemented Interfaces:
Serializable
,Comparable<HtmlNamespaceExtension.Mode>
,Constable
- Enclosing class:
- HtmlNamespaceExtension
Determines how namespaces are inferred in HTML.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAdditional namespaces are added to HTML by either the use of the "xmlns" or by mapping known elements to a particular namespace.Additional namespaces are added to HTML by mapping known elements to a particular namespaceNo additional namespaces are added to HTML; it functions as specifiedAdditional namespaces are added to HTML by the use of the "xmlns" prefix, exactly as with XML -
Method Summary
Modifier and TypeMethodDescriptionstatic HtmlNamespaceExtension.Mode
Returns the enum constant of this class with the specified name.static HtmlNamespaceExtension.Mode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
None
No additional namespaces are added to HTML; it functions as specified -
XMLNS
Additional namespaces are added to HTML by the use of the "xmlns" prefix, exactly as with XML -
Manual
Additional namespaces are added to HTML by mapping known elements to a particular namespace -
Auto
Additional namespaces are added to HTML by either the use of the "xmlns" or by mapping known elements to a particular namespace. Whichever is encountered first in the document applies.
-
-
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
-