Traversal Strategies

Identifier:
com.ibm.xtools.emf.validation.core.traversalStrategies

Since:
7.0.5

Description:

Allows clients to contribute a custom traversal strategy that will be used when validation core executes batch validation. Batch validation occurs during resource load, calls to ValidationManager#executeValidation and constraint enablement.

This allows clients to provide specialized handling in these circumstances. By default the strategy used traverses the proper contents of the object and ignores unloaded resources and objects.

Configuration Markup:

<!ELEMENT extension (traversalStrategy+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT traversalStrategy EMPTY>

<!ATTLIST traversalStrategy

namespaceUri CDATA #REQUIRED

class        CDATA #REQUIRED>


Examples:


<extension
         point="com.ibm.xtools.emf.validation.core.traversalStrategies">
 <traversalStrategy
  class="com.ibm.xtools.emf.validation.core.tests.traversal.TestTraversalStrategy"
     namespaceUri="http:///org/eclipse/emf/examples/library/extlibrary.ecore/1.0.0"/>
</extension>

API Information:
The value of the class attribute in the traversalStrategy element must represent a subclass of org.eclipse.emf.validation.service.ITraversalStrategy.

Supplied Implementation:
The platform itself does not have any predefined traversalStrategies. Particular product installs may include traversalStrategies as required.


Copyright (c) 2004, 2018 Model RealTime, HCL and others. All Rights Reserved.