|
org.openide.filesystems 8.5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=SOURCE) public static @interface MIMEResolver.NamespaceRegistration
Recognize mime type by looking into header of XML files. The file will be recognized by following rules:
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.
| Required Element Summary | |
|---|---|
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. |
| Optional Element Summary | |
|---|---|
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. |
| Element Detail |
|---|
public abstract String displayName
public abstract String mimeType
public abstract int position
position.
public abstract String[] acceptedExtension
mimeType().
public abstract String[] checkedExtension
public abstract String elementName
public abstract String[] elementNS
elements
are accepted that have the right namespace.
public abstract String[] doctypePublicId
|
org.openide.filesystems 8.5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||