Class DisabledModulesMimeUtils.MimeInfo

java.lang.Object
uno.anahata.ai.nb.mime.DisabledModulesMimeUtils.MimeInfo
Enclosing class:
DisabledModulesMimeUtils

public static class DisabledModulesMimeUtils.MimeInfo extends Object
Represents information about a MIME type found in a module.
  • Field Details

    • mimeType

      public final String mimeType
      The MIME type string (e.g., "text/x-java").
    • moduleCodeName

      public final String moduleCodeName
      The code name base of the module providing this MIME type.
    • enabled

      public final boolean enabled
      Whether the module is currently enabled.
  • Constructor Details

    • MimeInfo

      public MimeInfo(String mime, String codeName, boolean enabled)
      Constructs a new MimeInfo.
      Parameters:
      mime - the MIME type.
      codeName - the module code name.
      enabled - whether the module is enabled.
  • Method Details

    • getPrimaryExtension

      public String getPrimaryExtension()
      Gets the primary (first) file extension associated with this MIME type.
      Returns:
      The primary extension, or null if none is found.
    • toString

      public String toString()
      Overrides:
      toString in class Object