PUBLIC "-//NetBeans//DTD MIME Resolver 1.0//EN"
Element Content Model
(file)+
Referenced by
PUBLIC "-//NetBeans//DTD MIME Resolver XML Rules 1.0//EN"
It should work well for:Element Content Model
Referenced by
It should be used for in-band tagging that is specified by some
accepted specification. For NetBeans-specific tagging of third party standards it is
recommended to use out-of-band tagging such as FileObject
attributes.
Declared Attributes
Element Content Model
(attr*)
Referenced by
public-id
subelements is mutually exclusive with the attribute.Declared Attributes
Element Content Model
(public-id*)
Referenced by
Declared Attributes
Element Content Model
EMPTY
Referenced by
The namespace ns
attribute or the presence of any ns
subelements
implies that the name
attribute represents a local element name,
otherwise the name
attribute represents a full element name ("QName").
One of the namespaces must match.
Declared Attributes
Element Content Model
Referenced by
Declared Attributes
Element Content Model
EMPTY
Referenced by
The name
attribute contains the full attribute name (QName).
This is inteded to be used for documents that cannot be indentified by public ID nor
root element namespace.
text
is specified then the attribute's normalized text must
exactly match the specified text, otherwise the attribute just needs to be present.Declared Attributes
Element Content Model
EMPTY
Referenced by
FileObject
attributes.
Some of them must match to proceed to the resolver
element.
Implementation Note:
Lower level MIME type is obtained by FileUtil.getMIMEType()
. It may not be
retrieved by a call to FileObject.getMIMEType
to avoid recursion. A better way
to determine MIME type as assigned by the OS may be introduced in the future.
Implementation Note:
All other tests are performed by calling appropriate methods on FileObject
so there is a danger of recursion if these call this.getMIMEType()
.
Element Content Model
((ext | mime | magic | fattr | pattern | name)+, (resolver | exit))
Referenced by
Declared Attributes
Element Content Model
EMPTY
Referenced by
Declared Attributes
Element Content Model
EMPTY
Referenced by
hex
attribute is long.
E.g. <magic hex="0a0001" mask="FF00FF"/>Declared Attributes
Element Content Model
EMPTY
Referenced by
FileObject
attributes. Matching attributes are converted
to strings via Object.toString()
and compared to the text
attribute.
FileObject
attributes can be used for out-of-band tagging of standard documents.
Declared Attributes
Element Content Model
EMPTY
Referenced by
Pattern <?php in first 255 bytes
<pattern value="<?php" range="255"/>
Pattern <HTML> or <html> in first 255 bytes and pattern <?php in first 4000 bytes.
<pattern value="<HTML>" range="255" ignorecase="true"> <pattern value="<?php" range="4000"/> </pattern>
Declared Attributes
Element Content Model
(pattern?)
Referenced by
Filename matches makefile, Makefile, MaKeFiLe, mymakefile, gnumakefile, makefile1, ....
<name name="makefile" substring="true"/>
Filename exactly matches rakefile or Rakefile.
<name name="rakefile" ignorecase="false"/> <name name="Rakefile" ignorecase="false"/>
Declared Attributes
Element Content Model
EMPTY
Referenced by
mime
element value is returned. Use the reserved value of null
to indicate you are not interested in such files (same as <exit/>).Declared Attributes
Element Content Model
(xml-rule)?
Referenced by
Do not resolve *.txt files and do time consuming magic recognition only for not-txt files.
<file> <ext name="txt"/> <exit/> </file> <file> <magic hex="0a0001" mask="FF00FF"/> <resolver mime="text/plain"/> </file>
Element Content Model
EMPTY
Referenced by