java.lang.Object
java.lang.Enum<MimeType>
de.funfried.netbeans.plugins.external.formatter.MimeType
All Implemented Interfaces:
Serializable, Comparable<MimeType>, Constable

public enum MimeType extends Enum<MimeType>
Enum describing the supported mime types for external formatters.
Author:
bahlef
  • Enum Constant Details

    • CSS

      public static final MimeType CSS
    • HTML

      public static final MimeType HTML
    • JAVA

      public static final MimeType JAVA
    • JAVASCRIPT

      public static final MimeType JAVASCRIPT
    • JSON

      public static final MimeType JSON
    • XML

      public static final MimeType XML
    • SQL

      public static final MimeType SQL
  • Method Details

    • values

      public static MimeType[] 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 MimeType 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
    • getDisplayName

      public String getDisplayName()
    • canHandle

      public boolean canHandle(String mimeType)
    • canHandle

      public static boolean canHandle(List<MimeType> types, String mimeType)
    • getByMimeType

      public static MimeType getByMimeType(String mimeType)
    • getMimeType

      public static MimeType getMimeType(Document document)
    • getMimeTypeAsString

      public static String getMimeTypeAsString(Document document)