Enum AnySCRIPT.Type

java.lang.Object
java.lang.Enum<AnySCRIPT.Type>
com.aoapps.html.any.AnySCRIPT.Type
All Implemented Interfaces:
Serializable, Comparable<AnySCRIPT.Type>
Enclosing class:
AnySCRIPT<D extends AnyDocument<D>,PC extends AnyScriptSupportingContent<D,PC>,E extends AnySCRIPT<D,PC,E>>

public static enum AnySCRIPT.Type extends Enum<AnySCRIPT.Type>
  • Enum Constant Details

    • APPLICATION_JAVASCRIPT

      public static final AnySCRIPT.Type APPLICATION_JAVASCRIPT
      The default type for (X)HTML 5.
    • TEXT_JAVASCRIPT

      @Deprecated public static final AnySCRIPT.Type TEXT_JAVASCRIPT
      Deprecated.
      Use APPLICATION_JAVASCRIPT in HTML 5.
      The default type for XHTML 1.0 / HTML 4.
    • APPLICATION_JSON

      public static final AnySCRIPT.Type APPLICATION_JSON
      A JSON object graph.
    • APPLICATION_JD_JSON

      public static final AnySCRIPT.Type APPLICATION_JD_JSON
      JSON linked data.
    • APPLICATION_ECMASCRIPT

      public static final AnySCRIPT.Type APPLICATION_ECMASCRIPT
  • Method Details

    • values

      public static AnySCRIPT.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AnySCRIPT.Type valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AnySCRIPT.Type>
    • getContentType

      public String getContentType()