net.sourceforge.jarbundler
Class DocumentType

java.lang.Object
  extended by net.sourceforge.jarbundler.DocumentType

public class DocumentType
extends java.lang.Object

Represents an Info.plist DocumentType used for associating a document with the application The Document Types allows you to specify which documents your finished product can handle. You should list the application's primary document type first because the document controller uses that type by default when the user requests a new document. Name - The name of the document type. UTI - A list of Uniform Type Identifier (UTI) strings for the document. UTIs are strings that uniquely identify abstract types. They can be used to describe a file format or data type but can also be used to describe type information for other sorts of entities, such as directories, volumes, or packages. For more information on UTIs, see the header file UTType.h, available as part of LaunchServices.framework in Mac OS X v10.3 and later. Extensions - A list of the filename extensions for this document type. Don't include the period in the extension. OS Types - A list of four-letter codes for the document. These codes are stored in the document's resources or information property list files. MIME Types - A list of the Multipurpose Internet Mail Extensions (MIME) types for the document. MIME types identify content types for Internet applications. Icon File - The name of the file that contains the document type's icon. Role - A description of how the application uses the documents of this type. Editor - The application can display, edit, and save documents of this type. Viewer - The application can display, but not edit, documents of this type. Shell - The application provides runtime services for other processes for example, a Java applet viewer. None - The application can neither display nor edit documents of this type but instead uses them in some other way. For example, Sketch uses this role to declare types it can export but not read. Bundle - Specifies whether the document is a single file or a file bundle, that is, a directory that is treated as a single document by certain applications, such as the Finder. name="Scan Project" extensions="scansort scanproj" ostypes="fold disk fdrp" iconfile="document.icns" mimetypes="text/html image/jpeg" role="editor" bundle="true" />


Field Summary
 java.lang.String[] extensions
          Extensions.
 java.io.File iconFile
          Icon File.
 boolean isBundle
          Bundle.
 java.lang.String[] mimeTypes
          MIME Types.
 java.lang.String name
          Name.
 java.lang.String[] osTypes
          OS Types.
 java.lang.String role
          Role.
 java.lang.String[] UTIs
          UTI.
 
Constructor Summary
DocumentType()
           
 
Method Summary
 java.util.List getExtensions()
           
 java.io.File getIconFile()
           
 java.util.List getMimeTypes()
           
 java.lang.String getName()
           
 java.util.List getOSTypes()
           
 java.lang.String getRole()
           
 java.util.List getUTIs()
           
 boolean isBundle()
           
 void setBundle(boolean isBundle)
           
 void setExtensions(java.lang.String extensions)
           
 void setIconFile(java.io.File iconFile)
           
 void setMimeTypes(java.lang.String mimeTypes)
           
 void setName(java.lang.String name)
           
 void setOSTypes(java.lang.String osTypes)
           
 void setRole(java.lang.String role)
           
 void setUTIs(java.lang.String UTIs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
Name. The name of the document type.


extensions

public java.lang.String[] extensions
Extensions. A list of the filename extensions for this document type. Don't include the period in the extension.


osTypes

public java.lang.String[] osTypes
OS Types. A list of four-letter codes for the document. These codes are stored in the document's resources or information property list files.


mimeTypes

public java.lang.String[] mimeTypes
MIME Types. A list of the Multipurpose Internet Mail Extensions (MIME) types for the document. MIME types identify content types for Internet applications.


UTIs

public java.lang.String[] UTIs
UTI. A list of Uniform Type Identifier (UTI) strings for the document. UTIs are strings that uniquely identify abstract types. They can be used to describe a file format or data type but can also be used to describe type information for other sorts of entities, such as directories, volumes, or packages. For more information on UTIs, see the header file UTType.h, available as part of LaunchServices.framework in Mac OS X v10.3 and later.


iconFile

public java.io.File iconFile
Icon File. The name of the file that contains the document types icon.


role

public java.lang.String role
Role. A description of how the application uses the documents of this type. You can choose from four values:

Editor. The application can display, edit, and save documents of this type.

Viewer. The application can display, but not edit, documents of this type.

Shell. The application provides runtime services for other processesfor example, a Java applet viewer.

None. The application can neither display nor edit documents of this type but instead uses them in some other way. For example, Sketch uses this role to declare types it can export but not read.


isBundle

public boolean isBundle
Bundle. Specifies whether the document is a single file document or a document bundle, that is, a directory that is treated as a single document by certain applications, such as the Finder.

Constructor Detail

DocumentType

public DocumentType()
Method Detail

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setExtensions

public void setExtensions(java.lang.String extensions)

getExtensions

public java.util.List getExtensions()

setOSTypes

public void setOSTypes(java.lang.String osTypes)

getOSTypes

public java.util.List getOSTypes()

setMimeTypes

public void setMimeTypes(java.lang.String mimeTypes)

getMimeTypes

public java.util.List getMimeTypes()

setUTIs

public void setUTIs(java.lang.String UTIs)

getUTIs

public java.util.List getUTIs()

setIconFile

public void setIconFile(java.io.File iconFile)

getIconFile

public java.io.File getIconFile()

setRole

public void setRole(java.lang.String role)

getRole

public java.lang.String getRole()

setBundle

public void setBundle(boolean isBundle)

isBundle

public boolean isBundle()