edu.ksu.cis.cadena.core.adapter.scenario
Class ScenarioAdapter

java.lang.Object
  extended by edu.ksu.cis.cadena.core.adapter.BaseCadenaAdapter
      extended by 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

Field Summary
static java.lang.String STYLE_MISMATCH_ERROR
           
static java.lang.String UNRESOLVED_MODULE_ERROR
           
static java.lang.String UNRESOLVED_STYLE_ERROR
           
static java.lang.String UNSPECIFIED_STYLE_ERROR
           
 
Fields inherited from class edu.ksu.cis.cadena.core.adapter.BaseCadenaAdapter
REFERENCED_OBJECT_IN_TRASH_ERROR
 
Constructor Summary
ScenarioAdapter()
           
 
Method Summary
 void checkImports(Scenario scenario)
          Checks the validity of each of the module imports of a scenario.
 void checkInstanceNameUniqueness(Scenario scenario)
          Checks that each instance (component or scenario) has a unique name
 void checkNode(EObject node)
          Called when a complete check of the model is performed.
 void checkStyle(Scenario scenario)
          Checks the validity of the a scenario's specified style.
 void forwardReferenceChanged(Notification notification, EObject notifyingObject, EStructuralFeature notifyingObjectFeature)
           
 void notifyChanged(Notification notification)
           
 
Methods inherited from class edu.ksu.cis.cadena.core.adapter.BaseCadenaAdapter
addAffectedReferrers, addNotificationValues, getAffectedValues, getTarget, isAdapterForType, setMarkers, setTarget
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ScenarioAdapter

public ScenarioAdapter()
Method Detail

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:

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:

Parameters:
scenario - the scenario to check