@Retention(SOURCE) public static @interface MIMEResolver.NamespaceRegistration
acceptedExtension()
list, then the recognition
is over and mimeType()
is assigned to the file.
extensions to check
(which by default contains "xml"
), then
the recognition is over without recognizing any mime type.
public ID
,
then the mime type is recognized and the recognition ends.
elementName()
,
then the recognition is over without recognizing the mime type.
elementNS()
namespaces is specified and the
namespace of the root element is not among the list, then the recognition
is over and no mime type is recognized.
mimeType()
is recognized.
MIMEResolver.ExtensionRegistration
.Modifier and Type | Required Element | Description |
---|---|---|
String |
displayName |
Display name to present this type of objects to the user.
|
String |
mimeType |
Mime type to be assigned to files that match description of this
annotation.
|
Modifier and Type | Optional Element | Description |
---|---|---|
String[] |
acceptedExtension |
The extension that is automatically accepted.
|
String[] |
checkedExtension |
The extension of the file to check.
|
String[] |
doctypePublicId |
If this attribute is specified, the system will check whether
at least one of the specified doctype's public ids, is used in
the document.
|
String |
elementName |
Name of root element.
|
String[] |
elementNS |
Accept only elements that have specific namespace.
|
int |
position |
In case ordering of mime resolvers is important, one can
specify it by defining their
position . |
String displayName
String mimeType
int position
position
.String[] acceptedExtension
mimeType()
.String[] checkedExtension
String elementName
String[] doctypePublicId
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.