Validator Exclusion

Identifier:
org.eclipse.wst.validation.exclude

Since:
WebTools 3.0

Description:
A way to add additional exclusion filters to a V2 validator.

Configuration Markup:

<!ELEMENT extension (validator+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #REQUIRED

name  CDATA #IMPLIED>


<!ELEMENT validator (exclude)>

<!ATTLIST validator

id IDREF #REQUIRED>

Identifies the validator that is being extended.



<!ELEMENT exclude (rules)>

This contains a set of exclusion rules, used in filtering which resources get validated. If any of these rules are matched, then the validator is not called on this resource.



<!ELEMENT fileext EMPTY>

<!ATTLIST fileext

ext           CDATA #REQUIRED

caseSensitive (true | false) >

A file extension, for example html.



<!ELEMENT projectNature EMPTY>

<!ATTLIST projectNature

id CDATA #REQUIRED>

Used to filter on project natures.



<!ELEMENT file EMPTY>

<!ATTLIST file

name          CDATA #REQUIRED

caseSensitive (true | false)

type          (folder|file|full) >


<!ELEMENT rules (fileext* , file* , projectNature* , facet* , contentType* , pattern*)>

A set of rules for determining if a resource is passed to this validator or not. The rules are OR'ed together.



<!ELEMENT facet EMPTY>

<!ATTLIST facet

id CDATA #REQUIRED>


<!ELEMENT contentType EMPTY>

<!ATTLIST contentType

id         CDATA #REQUIRED

exactMatch (true | false) >

Used to filter based on content types.



<!ELEMENT pattern EMPTY>

<!ATTLIST pattern

regex         CDATA #REQUIRED

caseSensitive (true | false) >

Holds a regualr expression, that matches the resource's project relative name.



Examples: