@Retention(SOURCE) public static @interface MIMEResolver.Registration
mime resolvers
.
For simpler cases rather consider using
MIMEResolver.NamespaceRegistration
or
MIMEResolver.ExtensionRegistration
.
The resource
attribute of the annotation should be a relative reference to
an XML like document describing
the rules that will be interpreted by the mime recognizing infrastructure.
The definition is pre-processed during compile time in order to eliminate XML parsing during execution.@
NbBundle.Messages
({ "NICE_NAME=Nice name!" })@
MIMEResolver.Registration( displayName="#NICE_NAME" resource="your-resolver-definition.xml" ) class AnyClassYouHave { // ... }
Modifier and Type | Required Element | Description |
---|---|---|
String |
displayName |
Display name to present this type of objects to the user.
|
String |
resource |
Relative path
to resource XML file describing
the mime recognition rules. |
Modifier and Type | Optional Element | Description |
---|---|---|
int |
position |
In case ordering of mime resolvers is important, one can
specify it by defining their
position . |
String[] |
showInFileChooser |
Show file filters for registered MIME types.
|
String resource
Relative path
to resource XML file describing
the mime recognition rules.String displayName
int position
position
.String[] showInFileChooser
FileChooserBuilder#addDefaultFileFilters()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.