Enum Class KString.Kind

java.lang.Object
java.lang.Enum<KString.Kind>
com.iizix.text.KString.Kind
All Implemented Interfaces:
Serializable, Comparable<KString.Kind>, Constable
Enclosing class:
KString

public static enum KString.Kind extends Enum<KString.Kind>
The kind of KString: what its parser admitted, and therefore what the client may be handed.
Author:
Christopher Mindus
  • Enum Constant Details

    • CLASSICAL

      public static final KString.Kind 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

      public static final KString.Kind TRUSTED
      The trusted kind: HTML the application vouches for, parsed with the permissive tables and no value inspection. Created by KString.newTrustedHTMLKString(String,boolean).
    • TRUSTED_UNPARSED

      public static final KString.Kind TRUSTED_UNPARSED
      The trusted unparsed kind: HTML the application vouches for, never parsed, passed to the client as it is. Created by KString.newTrustedUnparsedHTMLKString(String).
  • Method Details

    • values

      public static KString.Kind[] 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

      public static KString.Kind valueOf(String name)
      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 name
      NullPointerException - if the argument is null