edu.ksu.cis.cadena.core.adapter.scenario
Class ScenarioAdapter
java.lang.Object
edu.ksu.cis.cadena.core.adapter.BaseCadenaAdapter
edu.ksu.cis.cadena.core.adapter.scenario.ScenarioAdapter
- All Implemented Interfaces:
- CadenaAdapter
public class ScenarioAdapter
- extends BaseCadenaAdapter
Handles all the checks for an individual Scenarionode, but none of
its children.
- Author:
- Matt Hoosier
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNSPECIFIED_STYLE_ERROR
public static final java.lang.String UNSPECIFIED_STYLE_ERROR
UNRESOLVED_STYLE_ERROR
public static final java.lang.String UNRESOLVED_STYLE_ERROR
UNRESOLVED_MODULE_ERROR
public static final java.lang.String UNRESOLVED_MODULE_ERROR
STYLE_MISMATCH_ERROR
public static final java.lang.String STYLE_MISMATCH_ERROR
ScenarioAdapter
public ScenarioAdapter()
checkNode
public void checkNode(EObject node)
- Description copied from interface:
CadenaAdapter
- Called when a complete check of the model is performed. All checks that
the adapter provides should be checked by this call.
- Specified by:
checkNode in interface CadenaAdapter- Overrides:
checkNode in class BaseCadenaAdapter
- Parameters:
node - The current node being checked.
notifyChanged
public void notifyChanged(Notification notification)
- Overrides:
notifyChanged in class BaseCadenaAdapter
forwardReferenceChanged
public void forwardReferenceChanged(Notification notification,
EObject notifyingObject,
EStructuralFeature notifyingObjectFeature)
- Specified by:
forwardReferenceChanged in interface CadenaAdapter- Specified by:
forwardReferenceChanged in class BaseCadenaAdapter
checkInstanceNameUniqueness
public void checkInstanceNameUniqueness(Scenario scenario)
- Checks that each instance (component or scenario) has a unique name
- Parameters:
scenario - the scenario to check
checkStyle
public void checkStyle(Scenario scenario)
- Checks the validity of the a scenario's specified style. The following
checks are performed:
- Check that the specified style is not null
- Check that the specified style is resolved
- Parameters:
scenario - The scenario to check
checkImports
public void checkImports(Scenario scenario)
- Checks the validity of each of the module imports of a scenario. The
following checks are performed:
- Check to make sure that the style of each module is compatible
with the style of the sceanario
- Check to make sure that each module import is resolved
- Parameters:
scenario - the scenario to check