|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jApp.jdic.Association
public class Association
This class represents a file type association.
A file type association contains a description, the MIME type, file extension, and icon (file) name.
An association can be registered into or unregistered from the desktop system using
methods of AssociationService
.
AssociationService
Constructor Summary | |
---|---|
Association(java.lang.String extension,
java.lang.String mimeType,
java.lang.String magic,
java.lang.String icon,
java.lang.String description)
Creates an imutable file association that relates file name extension (".myext"), mime type ("application/vnd.mycompany.myext"), icon ("myAppDocIcon.png") and description ("A MyApp application Document") |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Gets the description string for this association. |
java.lang.String |
getExtension()
Gets the file name extension for this association. |
java.lang.String |
getIcon()
Gets the icon name for this association. |
java.lang.String |
getMagicPattern()
Gets the magic pattern xml fragment for this association. |
java.lang.String |
getMimeType()
Gets the mime type for this association |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Association(java.lang.String extension, java.lang.String mimeType, java.lang.String magic, java.lang.String icon, java.lang.String description)
extension
- the extension including the preceding dotmimeType
- the mime type in the form type/subtypemagic
- the magic xml fragment, can be nullicon
- the icon name, including image type extension, excluding pathdescription
- end user description of this associationMethod Detail |
---|
public java.lang.String getDescription()
Example return value:
"A MyApp document"
public java.lang.String getMimeType()
public java.lang.String getMagicPattern()
An example xml fraction:
"<magic priority="50">
<match type="string" offset="0" value="diff\t"/>
</magic>"
public java.lang.String getExtension()
Example return value:
".ext"
public java.lang.String getIcon()
Example return value:
"myDocumentIcon.png"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |