Package gmbh.pagina.tools.gradle.mac_app
Class DocumentType
java.lang.Object
gmbh.pagina.tools.gradle.mac_app.DocumentType
A data structure to store information about the document type for use in an Info.plist.
Reference: Stack Overflow answer
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String[]Uniform Type Identifiers listed underLSItemContentTypes.final StringLaunch Services handler rank used inLSHandlerRank.final StringDisplay name used inCFBundleTypeName.final StringDeclared role used inCFBundleTypeRole(for example Viewer or Editor). -
Constructor Summary
ConstructorsConstructorDescriptionDocumentType(String name, String role, String handlerRank, String[] contentTypes) Constructs a DocumentType with the provided properties. -
Method Summary
-
Field Details
-
name
Display name used inCFBundleTypeName. -
role
Declared role used inCFBundleTypeRole(for example Viewer or Editor). -
handlerRank
Launch Services handler rank used inLSHandlerRank. -
contentTypes
Uniform Type Identifiers listed underLSItemContentTypes.
-
-
Constructor Details
-
DocumentType
Constructs a DocumentType with the provided properties.- Parameters:
name- the name of the document typerole- the role of the document typehandlerRank- the handler rankcontentTypes- the array of content type UTIs
-