com.ps.consul.eclipse.ui.checks

Identifier:
com.ps.consul.eclipse.ui.checks.Checks

Since:
2.x

Description:
This extension point is used to add a new check.
There are model checks, element checks, checks for an insertion of a new or edited element,
drag-and-drop checks (elements), copy-and-paste checks (elements, properties, relations, values, references).
Some checks are applicable in component models, some checks are applicable in feature models and some checks are applicable in both models.

Configuration Markup:

<!ELEMENT extension (ModelCheck* , DestElemSrcElemCheck* , DestPropSrcValueCheck* , DestElemSrcRelCheck* , DestElemSrcRefCheck* , ElementCheck* , NewElemCheck* , DestElemSrcPropCheck*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>

Extension point for checks.



<!ELEMENT NewElemCheck EMPTY>

<!ATTLIST NewElemCheck

class          CDATA #REQUIRED

name           CDATA #REQUIRED

label          CDATA #IMPLIED

modeltypes     CDATA #REQUIRED

description    CDATA #IMPLIED

category       CDATA #IMPLIED

default_active (true | false) >

An additional new element check.



<!ELEMENT DestPropSrcValueCheck EMPTY>

<!ATTLIST DestPropSrcValueCheck

class          CDATA #REQUIRED

name           CDATA #REQUIRED

label          CDATA #IMPLIED

modeltypes     CDATA #REQUIRED

description    CDATA #IMPLIED

category       CDATA #IMPLIED

default_active (true | false) >

An additional dest prop src value check.



<!ELEMENT DestElemSrcRelCheck EMPTY>

<!ATTLIST DestElemSrcRelCheck

class          CDATA #REQUIRED

name           CDATA #REQUIRED

label          CDATA #IMPLIED

modeltypes     CDATA #REQUIRED

description    CDATA #IMPLIED

category       CDATA #IMPLIED

default_active (true | false) >

An additional dest elem src rel check.



<!ELEMENT DestElemSrcRefCheck EMPTY>

<!ATTLIST DestElemSrcRefCheck

class          CDATA #REQUIRED

name           CDATA #REQUIRED

label          CDATA #IMPLIED

modeltypes     CDATA #REQUIRED

description    CDATA #IMPLIED

category       CDATA #IMPLIED

default_active (true | false) >

An additional dest elem src ref check.



<!ELEMENT DestElemSrcPropCheck EMPTY>

<!ATTLIST DestElemSrcPropCheck

class          CDATA #REQUIRED

name           CDATA #REQUIRED

label          CDATA #IMPLIED

modeltypes     CDATA #REQUIRED

description    CDATA #IMPLIED

category       CDATA #IMPLIED

default_active (true | false) >

An additional dest elem src prop check.



<!ELEMENT DestElemSrcElemCheck EMPTY>

<!ATTLIST DestElemSrcElemCheck

class          CDATA #REQUIRED

name           CDATA #REQUIRED

label          CDATA #IMPLIED

modeltypes     CDATA #REQUIRED

description    CDATA #IMPLIED

category       CDATA #IMPLIED

default_active (true | false) >

An additional dest elem src elem check.



<!ELEMENT ModelCheck EMPTY>

<!ATTLIST ModelCheck

class          CDATA #REQUIRED

name           CDATA #REQUIRED

label          CDATA #IMPLIED

modeltypes     CDATA #REQUIRED

description    CDATA #IMPLIED

category       CDATA #IMPLIED

default_active (true | false) >

An additional model check.



<!ELEMENT ElementCheck EMPTY>

<!ATTLIST ElementCheck

class          CDATA #REQUIRED

name           CDATA #REQUIRED

label          CDATA #IMPLIED

modeltypes     CDATA #REQUIRED

description    CDATA #IMPLIED

category       CDATA #IMPLIED

default_active (true | false) >

An additional element check.



Examples:
<extension point="com.ps.consul.eclipse.checks.Checks">
     [<ModelCheck
            class="full qualified check class name, e.g. com.ps.consul.eclipse.checks.checks.model.CheckChildren"
            modeltypes="comma separated list of model types, e.g. ps:fm,ps:ccfm"
            description="description of the check"
            name="unique name of the model check, e.g. CheckChildren"
            category="category of the check, e.g. Model Checks"/>]
     [<ElementCheck
            class="full qualified check class name, e.g. com.ps.consul.eclipse.checks.checks.element.structural.ccfm.CheckClassesPartSource"
            modeltypes="comma separated list of model types, e.g. ps:fm"
            description="description of the check"
            name="unique name of the element check, e.g. CheckClassesPartSource"
            category="category of the check, e.g. Element Checks"/>]
     [<DestPropSrcValueCheck
            class="full qualified check class name, e.g. com.ps.consul.eclipse.checks.checks.element.attribute.CheckSameAttributeValues"
            modeltypes="comma separated list of model types, e.g. ps:fm, ps:ccfm"
            description="description of the check"
            name="unique name of the DestPropSrcValue check, e.g. CheckSameAttributeValues"
            category="category of the check, e.g. Other Checks"/>] 
     [<DestElemSrcPropCheck
            class="full qualified check class name, e.g.com.ps.consul.eclipse.checks.checks.element.attribute.CheckAttributeType"
            modeltypes="comma separated list of model types, e.g. ps:ccfm"
            description="a description of the check"
            name="unique name of the DestElemSrcProp check, e.g. CheckAttributeType"
            category="category of the check, e.g. Feature Model Element Checks"/>]
     [<DestElemSrcRelCheck
            class="full qualified check class name, e.g. com.ps.consul.eclipse.checks.checks.element.relation.CheckDifferentRelations"
            modeltypes="comma separated list of model types, e.g. ps:fm, ps:ccfm"
            description="a description of the check"
            name="unique name of the DestElemSrcRel check"
            category="category of the check, e.g. Family Model Element Checks"/>]
     [<DestElemSrcElemCheck
            class="full qualified check class name, e.g. com.ps.consul.eclipse.checks.checks.element.relation.fm.CheckAlternativeVersusRequires"
            modeltypes="comma separated list of model types, e.g. ps:fm"
            description="a description of the check"
            name="unique name of the DestElemSrcElem check, e.g. CheckAlternativeVersusRequires"
            category="category of the check, e.g. Element Relations Checks"/>]
     [<NewElemCheck
            class="full qualified check class name, e.g. com.ps.consul.eclipse.checks.checks.element.structural.CheckUniqueName"
            modeltypes="comma separated list of model types, e.g. ps:fm, ps:ccfm"
            description="a description of the check"
            name="unique name of the NewElem check, e.g. CheckUniqueName"
            category="category of the check, e.g. Model Checks"/>]
     [<DestElemSrcRefCheck
            class="full qualified check class name, e.g. com.ps.consul.eclipse.checks.checks.operation.ExpandAll.CheckSubTreeReferences"
            modeltypes="comma separated list of model types, e.g. ps:ccfm"
            description="a description of the check"
            name="unique name of the DestElemSrcRef check, e.g. CheckSubTreeReferences" 
            category="category of the check, e.g. Element Checks"/>]
</extension>