Enum Class KString.Kind
- All Implemented Interfaces:
Serializable, Comparable<KString.Kind>, Constable
- Enclosing class:
KString
The kind of KString: what its parser admitted, and therefore what the client may be handed.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe classical kind, safe by default: no SCRIPT, IFRAME, STYLE or FOREIGNOBJECT, no event attribute but the hyperlink machinery's own, no script-capable URL scheme.The trusted kind: HTML the application vouches for, parsed with the permissive tables and no value inspection.The trusted unparsed kind: HTML the application vouches for, never parsed, passed to the client as it is.Method Summary
Modifier and TypeMethodDescriptionstatic KString.KindReturns the enum constant of this class with the specified name.static KString.Kind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
CLASSICAL
The classical kind, safe by default: no SCRIPT, IFRAME, STYLE or FOREIGNOBJECT, no event attribute but the hyperlink machinery's own, no script-capable URL scheme. Every constructor creates it.TRUSTED
The trusted kind: HTML the application vouches for, parsed with the permissive tables and no value inspection. Created byKString.newTrustedHTMLKString(String,boolean).TRUSTED_UNPARSED
The trusted unparsed kind: HTML the application vouches for, never parsed, passed to the client as it is. Created byKString.newTrustedUnparsedHTMLKString(String).
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