| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.wst.validation" xmlns="http://www.w3.org/2001/XMLSchema"> |
| <annotation> |
| <appinfo> |
| <meta.schema plugin="org.eclipse.wst.validation" id="exclude" name="Validator Exclusion"/> |
| </appinfo> |
| <documentation> |
| A way to add additional exclusion filters to a V2 validator. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <complexType> |
| <sequence> |
| <element ref="validator" minOccurs="1" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="point" type="string" use="required"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| A short id that is unique within the plug-in, so that this set of extra exclusion filters can be identified. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| The short user friendly name for the exclusion. |
| </documentation> |
| <appinfo> |
| <meta.attribute translatable="true"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="validator"> |
| <annotation> |
| <documentation> |
| Identifies the validator that is being extended. |
| </documentation> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="exclude"/> |
| </sequence> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The fully qualifed validator id that is being extended. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="identifier"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="exclude"> |
| <annotation> |
| <documentation> |
| 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. |
| </documentation> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="rules"/> |
| </sequence> |
| </complexType> |
| </element> |
| |
| <element name="fileext"> |
| <annotation> |
| <documentation> |
| A file extension, for example html. |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="ext" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The file extension, for example html. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="caseSensitive" type="boolean"> |
| <annotation> |
| <documentation> |
| If the file extension is case sensitive, then this needs to be set to true. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="projectNature"> |
| <annotation> |
| <documentation> |
| Used to filter on project natures. |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The fully qualified project nature id, for example "org.eclipse.jdt.core.javanature". |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="file"> |
| <complexType> |
| <attribute name="name" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The file or folder name. The file name can be fully qualified, that is it starts with a leading slash ("/"), or it can be a relative name. Folder names are separated with the forward slash ("/") character. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="caseSensitive" type="boolean"> |
| <annotation> |
| <documentation> |
| If the file name is not case senstitive, then this needs to be set to false. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="type" use="required"> |
| <annotation> |
| <documentation> |
| Type of name, there are three choices. <ul><li>folder - specifies a project relative folder name.</li><li>file - a simple file name (i.e. no path information).</li><li>full - a fully qualified (project relative) file name.</li></ul> |
| </documentation> |
| </annotation> |
| <simpleType> |
| <restriction base="string"> |
| <enumeration value="folder"> |
| </enumeration> |
| <enumeration value="file"> |
| </enumeration> |
| <enumeration value="full"> |
| </enumeration> |
| </restriction> |
| </simpleType> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="rules"> |
| <annotation> |
| <documentation> |
| A set of rules for determining if a resource is passed to this validator or not. The rules are OR'ed together. |
| </documentation> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="fileext" minOccurs="0" maxOccurs="unbounded"/> |
| <element ref="file" minOccurs="0" maxOccurs="unbounded"/> |
| <element ref="projectNature" minOccurs="0" maxOccurs="unbounded"/> |
| <element ref="facet" minOccurs="0" maxOccurs="unbounded"/> |
| <element ref="contentType" minOccurs="0" maxOccurs="unbounded"/> |
| <element ref="pattern" minOccurs="0" maxOccurs="unbounded"/> |
| </sequence> |
| </complexType> |
| </element> |
| |
| <element name="facet"> |
| <complexType> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The facet id. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="contentType"> |
| <annotation> |
| <documentation> |
| Used to filter based on content types. |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The content type id. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="exactMatch" type="boolean"> |
| <annotation> |
| <documentation> |
| Set to true if the content type needs to match exactly. Set to false if sub types are considered matches as well. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| <element name="pattern"> |
| <annotation> |
| <documentation> |
| Holds a regualr expression, that matches the resource's project relative name. |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="regex" type="string" use="required"> |
| <annotation> |
| <documentation> |
| Holds a Java regular expression. See the class java.util.regex.Pattern for more details. This regular expression is matched against a resource's project relative path, after that path has been converted into a portable path. |
| <p>The path will always start with a forward slash (/) so that folder names can be more easily matched. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="caseSensitive" type="boolean"> |
| <annotation> |
| <documentation> |
| If the file name is not case senstitive, then this needs to be set to false. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="since"/> |
| </appinfo> |
| <documentation> |
| WebTools 3.0 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="examples"/> |
| </appinfo> |
| <documentation> |
| <!-- A plug-in is turning off the T1A validator for projects that have the ModuleCoreNature --> |
| <extension |
| id="exclude1" |
| point="org.eclipse.wst.validation.exclude"> |
| <validator |
| id="org.eclipse.wst.common.tests.validation.T1A"> |
| <exclude> |
| <rules> |
| <projectNature |
| id="org.eclipse.jst.j2ee.ModuleCoreNature"> |
| </projectNature> |
| </rules> |
| </exclude> |
| </validator> |
| </extension> |
| |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="apiInfo"/> |
| </appinfo> |
| <documentation> |
| Provisional API. |
| </documentation> |
| </annotation> |
| |
| |
| |
| |
| </schema> |