edu.ksu.cis.cadena.core.adapter.scenario
Class ComponentInstanceAdapter
java.lang.Object
edu.ksu.cis.cadena.core.adapter.BaseCadenaAdapter
edu.ksu.cis.cadena.core.adapter.scenario.AbstractInstanceAdapter
edu.ksu.cis.cadena.core.adapter.scenario.ComponentInstanceAdapter
- All Implemented Interfaces:
- CadenaAdapter
public class ComponentInstanceAdapter
- extends AbstractInstanceAdapter
Handles all of the checks associated with an individual
ComponentInstancenode, and not any of its children.
- Author:
- Matt Hoosier
|
Method Summary |
void |
checkNode(EObject node)
Do all checks applicable to a ComponentInstance. |
void |
checkType(ComponentInstance component)
Checks the validity of the specified type of a component instance. |
void |
forwardReferenceChanged(Notification notification,
EObject notifyingObject,
EStructuralFeature notifyingObjectFeature)
|
void |
notifyChanged(Notification notification)
Handle an update to some ComponentInstance. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNIMPORTED_MODULE_ERROR
public static final java.lang.String UNIMPORTED_MODULE_ERROR
UNSPECIFIED_TYPE_ERROR
public static final java.lang.String UNSPECIFIED_TYPE_ERROR
UNRESOLVED_TYPE_ERROR
public static final java.lang.String UNRESOLVED_TYPE_ERROR
DELETED_TYPE_ERROR
public static final java.lang.String DELETED_TYPE_ERROR
ComponentInstanceAdapter
public ComponentInstanceAdapter()
checkNode
public void checkNode(EObject node)
Do all checks applicable to a ComponentInstance.
Specifically, the following are called:
- Specified by:
checkNode in interface CadenaAdapter- Overrides:
checkNode in class AbstractInstanceAdapter
- Parameters:
node - The current node being checked.
forwardReferenceChanged
public void forwardReferenceChanged(Notification notification,
EObject notifyingObject,
EStructuralFeature notifyingObjectFeature)
- Specified by:
forwardReferenceChanged in interface CadenaAdapter- Specified by:
forwardReferenceChanged in class BaseCadenaAdapter
notifyChanged
public void notifyChanged(Notification notification)
- Handle an update to some
ComponentInstance. Various
checkXXX() methods will be triggered as structural
features are altered.
- Overrides:
notifyChanged in class BaseCadenaAdapter
checkType
public void checkType(ComponentInstance component)
- Checks the validity of the specified type of a component instance. The
following checks are performed:
- Check that the specified component type is not null
- Check that the specified component type is resolved
- Check that the specified component type is not deleted
- Check that the specified component type is contained within one of
the containing scenario's imported modules
- Parameters:
component - the component instance to check