uci.uml.Foundation.Core
Class Generalization

java.lang.Object
  |
  +--uci.uml.Foundation.Core.ElementImpl
        |
        +--uci.uml.Foundation.Core.ModelElementImpl
              |
              +--uci.uml.Foundation.Core.Generalization

public class Generalization
extends ModelElementImpl

By default a Generalization is in the Namespace of the sub class.

See Also:
Serialized Form

Field Summary
 GeneralizableElement _subtype
           
 GeneralizableElement _supertype
           
 
Fields inherited from class uci.uml.Foundation.Core.ModelElementImpl
_behavior, _collaboration, _constraint, _elementOwnership, _elementReference, _provision, _requirement, _stereotype, _taggedValue, _template, _templateParameter, MAX_STEREOTYPE
 
Fields inherited from class uci.uml.Foundation.Core.ElementImpl
_characteristic, _classification, _highlight, _name, _propertyListeners, _staticListener, _taggedValue, _vetoListeners, elementID
 
Constructor Summary
Generalization()
           
Generalization(GeneralizableElement sub, GeneralizableElement sup)
           
Generalization(Name name)
           
Generalization(String nameStr)
           
 
Method Summary
 Name getDiscriminator()
           
 GeneralizableElement getSubtype()
           
 GeneralizableElement getSupertype()
           
 Object prepareForTrash()
           
 void recoverFromTrash(Object momento)
           
 void setDiscriminator(Name x)
           
 void setSubtype(GeneralizableElement x)
           
 void setSupertype(GeneralizableElement x)
           
 
Methods inherited from class uci.uml.Foundation.Core.ModelElementImpl
addBehavior, addConstraint, addElementReference, addProvision, addRequirement, addStereotype, addTemplateParameter, alsoTrash, containsStereotype, dbgStereotypes, dbgTaggedValues, getBehavior, getConstraint, getElementOwnership, getElementReference, getNamespace, getProvision, getRequirement, getStereotype, getTemplate, getTemplateParameter, getVisibility, isLegalXMI, isNotLegalXMI, removeBehavior, removeConstraint, removeElementReference, removeProvision, removeRequirement, removeStereotype, removeTemplateParameter, setBehavior, setConstraint, setElementOwnership, setElementReference, setNamespace, setProvision, setRequirement, setStereotype, setTemplate, setTemplateParameter, setVisibility
 
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

_subtype

public GeneralizableElement _subtype

_supertype

public GeneralizableElement _supertype
Constructor Detail

Generalization

public Generalization()

Generalization

public Generalization(Name name)

Generalization

public Generalization(String nameStr)

Generalization

public Generalization(GeneralizableElement sub,
                      GeneralizableElement sup)
               throws PropertyVetoException
Method Detail

getDiscriminator

public Name getDiscriminator()

setDiscriminator

public void setDiscriminator(Name x)
                      throws PropertyVetoException

getSubtype

public GeneralizableElement getSubtype()

setSubtype

public void setSubtype(GeneralizableElement x)
                throws PropertyVetoException

getSupertype

public GeneralizableElement getSupertype()

setSupertype

public void setSupertype(GeneralizableElement x)
                  throws PropertyVetoException

prepareForTrash

public Object prepareForTrash()
                       throws PropertyVetoException
Overrides:
prepareForTrash in class ModelElementImpl

recoverFromTrash

public void recoverFromTrash(Object momento)
                      throws PropertyVetoException
Overrides:
recoverFromTrash in class ModelElementImpl