Faceted Project Validators Extension Point

org.eclipse.wst.common.project.facet.core.validators

This extension point is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Used for declaring faceted project validators.

<!ELEMENT extension (validator+)>

<!ATTLIST extension

point CDATA #REQUIRED>


<!ELEMENT facet EMPTY>

<!ATTLIST facet

id      CDATA #REQUIRED

version CDATA #IMPLIED>

Used to reference one or more version of a project facet.



<!ELEMENT validator (facet*)>

<!ATTLIST validator

class CDATA #REQUIRED>

Declares a faceted project validator. The validator can be restricted to projects containing specific facets.



The following example declares a validator that applies to projects that have facet1 (version 1.3 or 2.5) and facet2 (any version) installed.

<extension point=

"org.eclipse.wst.common.project.facet.core.validators"

>

<validator class=

"com.mycorp.MyValidator1"

>

<facet id=

"facet1"

version=

"1.3,2.5"

/>

<facet id=

"facet2"

/>

</validator>

</extension>

The second example declares a validator that applies to all faceted projects.

<extension point=

"org.eclipse.wst.common.project.facet.core.validators"

>

<validator class=

"com.mycorp.MyValidator2"

/>

</extension>