uci.uml.Foundation.Core
Class ModelElementImpl

java.lang.Object
  |
  +--uci.uml.Foundation.Core.ElementImpl
        |
        +--uci.uml.Foundation.Core.ModelElementImpl
Direct Known Subclasses:
ActionSequence, Argument, AssociationEnd, Constraint, Dependency, Event, Feature, Generalization, Guard, Instance, Interaction, Link, LinkEnd, Message, MMAction, NamespaceImpl, Parameter, Partition, Realization, StateMachine, StateVertex, Transition

public class ModelElementImpl
extends ElementImpl
implements ModelElement

An implementation of ModelElement.

See Also:
Serialized Form

Field Summary
 Vector _behavior
           
 Vector _collaboration
           
 Vector _constraint
           
 ElementOwnership _elementOwnership
           
 Vector _elementReference
           
 Vector _provision
           
 Vector _requirement
           
 Vector _stereotype
           
 Vector _taggedValue
           
 ModelElement _template
           
 Vector _templateParameter
           
static int MAX_STEREOTYPE
           
 
Fields inherited from class uci.uml.Foundation.Core.ElementImpl
_characteristic, _classification, _highlight, _name, _propertyListeners, _staticListener, _taggedValue, _vetoListeners, elementID
 
Constructor Summary
ModelElementImpl()
           
ModelElementImpl(Name name)
           
ModelElementImpl(String nameStr)
           
 
Method Summary
 void addBehavior(StateMachine x)
           
 void addConstraint(Constraint x)
           
 void addElementReference(ElementReference x)
           
 void addProvision(Dependency x)
           
 void addRequirement(Dependency x)
           
 void addStereotype(Stereotype x)
           
 void addTemplateParameter(ModelElement x)
           
 Vector alsoTrash()
           
 boolean containsStereotype(Stereotype x)
           
 String dbgStereotypes()
           
 String dbgTaggedValues()
           
 Vector getBehavior()
           
 Vector getConstraint()
           
 ElementOwnership getElementOwnership()
           
 Vector getElementReference()
           
 Namespace getNamespace()
           
 Vector getProvision()
           
 Vector getRequirement()
           
 Vector getStereotype()
           
 ModelElement getTemplate()
           
 Vector getTemplateParameter()
           
 VisibilityKind getVisibility()
           
 boolean isLegalXMI()
           
 boolean isNotLegalXMI()
           
 Object prepareForTrash()
           
 void recoverFromTrash(Object momento)
           
 void removeBehavior(StateMachine x)
           
 void removeConstraint(Constraint x)
           
 void removeElementReference(ElementReference x)
           
 void removeProvision(Dependency x)
           
 void removeRequirement(Dependency x)
           
 void removeStereotype(Stereotype x)
           
 void removeTemplateParameter(ModelElement x)
           
 void setBehavior(Vector x)
           
 void setConstraint(Vector x)
           
 void setElementOwnership(ElementOwnership x)
           
 void setElementReference(Vector x)
           
 void setNamespace(Namespace x)
           
 void setProvision(Vector x)
           
 void setRequirement(Vector x)
           
 void setStereotype(Vector x)
           
 void setTemplate(ModelElement x)
           
 void setTemplateParameter(Vector x)
           
 void setVisibility(VisibilityKind x)
           
 
Methods inherited from class uci.uml.Foundation.Core.ElementImpl
addCharacteristic, addPropertyChangeListener, addTaggedValue, addVetoableChangeListener, dbgString, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChangeNoCritique, firePropertyChangeNoCritique, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChangeNoCompare, getCharacteristic, getClassification, getElementCount, getHighlight, getId, getName, getNamedProperty, getOCLTypeStr, getTaggedValue, getVetoListeners, newElementID, removeCharacteristic, removePropertyChangeListener, removeTaggedValue, removeVetoableChangeListener, setCharacteristic, setClassification, setElementCount, setHighlight, setId, setName, setName, setStaticChangeListener, setTaggedValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_STEREOTYPE

public static final int MAX_STEREOTYPE

_elementOwnership

public ElementOwnership _elementOwnership

_constraint

public Vector _constraint

_provision

public Vector _provision

_taggedValue

public Vector _taggedValue

_requirement

public Vector _requirement

_templateParameter

public Vector _templateParameter

_template

public ModelElement _template

_stereotype

public Vector _stereotype

_behavior

public Vector _behavior

_collaboration

public Vector _collaboration

_elementReference

public Vector _elementReference
Constructor Detail

ModelElementImpl

public ModelElementImpl()

ModelElementImpl

public ModelElementImpl(Name name)

ModelElementImpl

public ModelElementImpl(String nameStr)
Method Detail

getNamespace

public Namespace getNamespace()
Specified by:
getNamespace in interface ModelElement

setNamespace

public void setNamespace(Namespace x)
Specified by:
setNamespace in interface ModelElement

getElementOwnership

public ElementOwnership getElementOwnership()
Specified by:
getElementOwnership in interface ModelElement

setElementOwnership

public void setElementOwnership(ElementOwnership x)
                         throws PropertyVetoException
Specified by:
setElementOwnership in interface ModelElement

getVisibility

public VisibilityKind getVisibility()

setVisibility

public void setVisibility(VisibilityKind x)
                   throws PropertyVetoException

getConstraint

public Vector getConstraint()
Specified by:
getConstraint in interface ModelElement

setConstraint

public void setConstraint(Vector x)
                   throws PropertyVetoException
Specified by:
setConstraint in interface ModelElement

addConstraint

public void addConstraint(Constraint x)
                   throws PropertyVetoException

removeConstraint

public void removeConstraint(Constraint x)
                      throws PropertyVetoException

getProvision

public Vector getProvision()
Specified by:
getProvision in interface ModelElement

setProvision

public void setProvision(Vector x)
                  throws PropertyVetoException
Specified by:
setProvision in interface ModelElement

addProvision

public void addProvision(Dependency x)
                  throws PropertyVetoException
Specified by:
addProvision in interface ModelElement

removeProvision

public void removeProvision(Dependency x)
                     throws PropertyVetoException
Specified by:
removeProvision in interface ModelElement

getRequirement

public Vector getRequirement()
Specified by:
getRequirement in interface ModelElement

setRequirement

public void setRequirement(Vector x)
                    throws PropertyVetoException
Specified by:
setRequirement in interface ModelElement

addRequirement

public void addRequirement(Dependency x)
                    throws PropertyVetoException
Specified by:
addRequirement in interface ModelElement

removeRequirement

public void removeRequirement(Dependency x)
                       throws PropertyVetoException
Specified by:
removeRequirement in interface ModelElement

getTemplateParameter

public Vector getTemplateParameter()
Specified by:
getTemplateParameter in interface ModelElement

setTemplateParameter

public void setTemplateParameter(Vector x)
                          throws PropertyVetoException
Specified by:
setTemplateParameter in interface ModelElement

addTemplateParameter

public void addTemplateParameter(ModelElement x)
                          throws PropertyVetoException

removeTemplateParameter

public void removeTemplateParameter(ModelElement x)
                             throws PropertyVetoException

getTemplate

public ModelElement getTemplate()
Specified by:
getTemplate in interface ModelElement

setTemplate

public void setTemplate(ModelElement x)
                 throws PropertyVetoException
Specified by:
setTemplate in interface ModelElement

getElementReference

public Vector getElementReference()
Specified by:
getElementReference in interface ModelElement

setElementReference

public void setElementReference(Vector x)
                         throws PropertyVetoException
Specified by:
setElementReference in interface ModelElement

addElementReference

public void addElementReference(ElementReference x)
                         throws PropertyVetoException

removeElementReference

public void removeElementReference(ElementReference x)
                            throws PropertyVetoException

getStereotype

public Vector getStereotype()
Specified by:
getStereotype in interface ModelElement

setStereotype

public void setStereotype(Vector x)
                   throws PropertyVetoException
Specified by:
setStereotype in interface ModelElement

addStereotype

public void addStereotype(Stereotype x)
                   throws PropertyVetoException

removeStereotype

public void removeStereotype(Stereotype x)
                      throws PropertyVetoException

containsStereotype

public boolean containsStereotype(Stereotype x)

getBehavior

public Vector getBehavior()
Specified by:
getBehavior in interface ModelElement

setBehavior

public void setBehavior(Vector x)
                 throws PropertyVetoException
Specified by:
setBehavior in interface ModelElement

addBehavior

public void addBehavior(StateMachine x)
                 throws PropertyVetoException
Specified by:
addBehavior in interface ModelElement

removeBehavior

public void removeBehavior(StateMachine x)
                    throws PropertyVetoException
Specified by:
removeBehavior in interface ModelElement

prepareForTrash

public Object prepareForTrash()
                       throws PropertyVetoException
Specified by:
prepareForTrash in interface ModelElement

recoverFromTrash

public void recoverFromTrash(Object momento)
                      throws PropertyVetoException
Specified by:
recoverFromTrash in interface ModelElement

alsoTrash

public Vector alsoTrash()

isLegalXMI

public boolean isLegalXMI()

isNotLegalXMI

public boolean isNotLegalXMI()

dbgStereotypes

public String dbgStereotypes()

dbgTaggedValues

public String dbgTaggedValues()