@Retention(value=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 and 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 and 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.
|
public abstract String resource
Relative path
to resource XML file describing
the mime recognition rules.public abstract String displayName
public abstract int position
position
.public abstract String[] showInFileChooser
FileChooserBuilder#addDefaultFileFilters()