edu.ksu.cis.cadena.core.adapter.module
Class ModuleAdapter

java.lang.Object
  extended by edu.ksu.cis.cadena.core.adapter.BaseCadenaAdapter
      extended by edu.ksu.cis.cadena.core.adapter.module.ModuleAdapter
All Implemented Interfaces:
CadenaAdapter

public class ModuleAdapter
extends BaseCadenaAdapter

Handles all of the checks associated with an individual module node, and not any of it's children.

Author:
jesse

Field Summary
static java.lang.String NAME_EMPTY_ERROR
           
static java.lang.String NAME_REUSED_ERROR_MODULE
           
static java.lang.String NAME_REUSED_ERROR_STYLE
           
static java.lang.String UNRESOLVED_IMPORT_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
ModuleAdapter()
           
 
Method Summary
 void checkNode(EObject node)
           Checks the features of the module.
 void forwardReferenceChanged(Notification notification, EObject notifyingObject, EStructuralFeature notifyingObjectFeature)
           
 void notifyChanged(Notification notification)
           Handles a change notification of a Module object.
 
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

NAME_EMPTY_ERROR

public static final java.lang.String NAME_EMPTY_ERROR

NAME_REUSED_ERROR_MODULE

public static final java.lang.String NAME_REUSED_ERROR_MODULE

NAME_REUSED_ERROR_STYLE

public static final java.lang.String NAME_REUSED_ERROR_STYLE

UNRESOLVED_IMPORT_ERROR

public static final java.lang.String UNRESOLVED_IMPORT_ERROR

UNRESOLVED_STYLE_ERROR

public static final java.lang.String UNRESOLVED_STYLE_ERROR

UNSPECIFIED_STYLE_ERROR

public static final java.lang.String UNSPECIFIED_STYLE_ERROR
Constructor Detail

ModuleAdapter

public ModuleAdapter()
Method Detail

notifyChanged

public void notifyChanged(Notification notification)

Handles a change notification of a Module object.

Depending on the feature that was changed, various checkXXX methods may be called

Overrides:
notifyChanged in class BaseCadenaAdapter
Parameters:
notification - The notification message

forwardReferenceChanged

public void forwardReferenceChanged(Notification notification,
                                    EObject notifyingObject,
                                    EStructuralFeature notifyingObjectFeature)
Specified by:
forwardReferenceChanged in interface CadenaAdapter
Specified by:
forwardReferenceChanged in class BaseCadenaAdapter

checkNode

public void checkNode(EObject node)

Checks the features of the module.

This is a convenience method that invokes the following methods:

Specified by:
checkNode in interface CadenaAdapter
Overrides:
checkNode in class BaseCadenaAdapter
Parameters:
module - The module to check