Class DocumentType

java.lang.Object
gmbh.pagina.tools.gradle.mac_app.DocumentType

public class DocumentType extends Object
A data structure to store information about the document type for use in an Info.plist.

Reference: Stack Overflow answer

  • Field Details

    • name

      public final String name
      Display name used in CFBundleTypeName.
    • role

      public final String role
      Declared role used in CFBundleTypeRole (for example Viewer or Editor).
    • handlerRank

      public final String handlerRank
      Launch Services handler rank used in LSHandlerRank.
    • contentTypes

      public final String[] contentTypes
      Uniform Type Identifiers listed under LSItemContentTypes.
  • Constructor Details

    • DocumentType

      public DocumentType(String name, String role, String handlerRank, String[] contentTypes)
      Constructs a DocumentType with the provided properties.
      Parameters:
      name - the name of the document type
      role - the role of the document type
      handlerRank - the handler rank
      contentTypes - the array of content type UTIs