@Retention(value=SOURCE) public static @interface MIMEResolver.NamespaceRegistration
MIMEResolver.NamespaceRegistration.acceptedExtension()
list, then the recognition
is over and MIMEResolver.NamespaceRegistration.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.
MIMEResolver.NamespaceRegistration.elementName()
,
then the recognition is over without recognizing the mime type.
MIMEResolver.NamespaceRegistration.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.
MIMEResolver.NamespaceRegistration.mimeType()
is recognized.
MIMEResolver.ExtensionRegistration
.Modifier and Type | Required Element and 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 and 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 . |
public abstract String displayName
public abstract String mimeType
public abstract int position
position
.public abstract String[] acceptedExtension
MIMEResolver.NamespaceRegistration.mimeType()
.public abstract String[] checkedExtension
public abstract String elementName
public abstract String[] doctypePublicId