com.evelopers.unimod.core.stateworks
Class ClassElement

java.lang.Object
  extended bycom.evelopers.unimod.core.ModelElement
      extended bycom.evelopers.unimod.core.stateworks.ClassElement
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ControlledObjectHandler, EventProviderHandler, StateMachine

public abstract class ClassElement
extends ModelElement

Abstract base implementaion for all classes in model such as ControlledObjectHandler, EventProviderHandler and StateMachine. For utility purposes implements delegate to ImplementationHandler. ControlledObjectHandler needs ImplementationHandler to handle ControlledObject implementation, EventProviderHandler handles EventProvider, StateMachine handles ConfigStore.

See Also:
Serialized Form

Field Summary
static java.lang.String IMPL_NAME_PROPERTY
           
protected  java.lang.String implName
           
static java.lang.String INCOMING_ASSOCIATIONS_PROPERTY
           
protected  java.util.List incomingAssociations
          List of outgoing associations that have this this class element
static java.lang.String OUTGOING_ASSOCIATIONS_PROPERTY
           
protected  java.util.List outgoingAssociations
          List of incoming associations
 
Fields inherited from class com.evelopers.unimod.core.ModelElement
listeners, name, NAME_PROPERTY, stereotype, STEREOTYPE_PROPERTY
 
Constructor Summary
(package private) ClassElement(java.lang.String name, java.lang.String stereotype)
           
 
Method Summary
protected  void addIncomingAssociation(Association association)
           
protected  void addOutgoingAssociation(Association association)
           
 boolean equals(java.lang.Object o)
          Compare with another model element.
 java.lang.String getImplName()
           
 java.util.List getIncomingAssociations()
           
 java.util.List getOutgoingAssociations()
           
 int hashCode()
          Returns model element hash code.
protected  void removeIncomingAssociation(Association association)
           
protected  void removeOutgoingAssociation(Association association)
           
protected  void setImplName(java.lang.String implName)
           
 java.lang.String toString()
          Returns class identifier
 
Methods inherited from class com.evelopers.unimod.core.ModelElement
accept, addPropertyChangeListener, firePropertyChange, getName, getStereotype, initListeners, removePropertyChangeListener, setName, setStereotype
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

IMPL_NAME_PROPERTY

public static final java.lang.String IMPL_NAME_PROPERTY
See Also:
Constant Field Values

OUTGOING_ASSOCIATIONS_PROPERTY

public static final java.lang.String OUTGOING_ASSOCIATIONS_PROPERTY
See Also:
Constant Field Values

INCOMING_ASSOCIATIONS_PROPERTY

public static final java.lang.String INCOMING_ASSOCIATIONS_PROPERTY
See Also:
Constant Field Values

outgoingAssociations

protected java.util.List outgoingAssociations
List of incoming associations


incomingAssociations

protected java.util.List incomingAssociations
List of outgoing associations that have this this class element


implName

protected java.lang.String implName
Constructor Detail

ClassElement

ClassElement(java.lang.String name,
             java.lang.String stereotype)
Method Detail

getImplName

public java.lang.String getImplName()

setImplName

protected void setImplName(java.lang.String implName)

addOutgoingAssociation

protected void addOutgoingAssociation(Association association)

removeOutgoingAssociation

protected void removeOutgoingAssociation(Association association)

addIncomingAssociation

protected void addIncomingAssociation(Association association)

removeIncomingAssociation

protected void removeIncomingAssociation(Association association)

getOutgoingAssociations

public java.util.List getOutgoingAssociations()

getIncomingAssociations

public java.util.List getIncomingAssociations()

hashCode

public int hashCode()
Description copied from class: ModelElement
Returns model element hash code.

Specified by:
hashCode in class ModelElement
Returns:
hash code

equals

public boolean equals(java.lang.Object o)
Description copied from class: ModelElement
Compare with another model element.

Specified by:
equals in class ModelElement
Parameters:
o - another model element
Returns:
boolean

toString

public java.lang.String toString()
Returns class identifier

Overrides:
toString in class ModelElement
Returns:
class identifier