uci.uml.Foundation.Core
Class NamespaceImpl

java.lang.Object
  |
  +--uci.uml.Foundation.Core.ElementImpl
        |
        +--uci.uml.Foundation.Core.ModelElementImpl
              |
              +--uci.uml.Foundation.Core.NamespaceImpl
Direct Known Subclasses:
Collaboration, GeneralizableElementImpl

public class NamespaceImpl
extends ModelElementImpl
implements Namespace

See Also:
Serialized Form

Field Summary
 Vector _ownedElement
           
 
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
NamespaceImpl()
           
NamespaceImpl(Name name)
           
NamespaceImpl(String nameStr)
           
 
Method Summary
 void addOwnedElement(ElementOwnership x)
           
 void addPrivateOwnedElement(ModelElement x)
           
 void addProtectedOwnedElement(ModelElement x)
           
 void addPublicOwnedElement(ModelElement x)
           
 void addUnspecOwnedElement(ModelElement x)
           
 boolean contains(ModelElement me)
           
 boolean contains(ModelElement me, VisibilityKind vk)
           
 boolean containsPublic(ModelElement me)
           
 ElementOwnership elementOwnershipFor(ModelElement me, VisibilityKind vk)
           
 ElementOwnership findElementNamed(String name)
           
 Vector getModelElements()
           
 Vector getOwnedElement()
           
 Object prepareForTrash()
           
 void recoverFromTrash(Object momento)
           
 void removeOwnedElement(ElementOwnership x)
           
 void setOwnedElement(Vector 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

_ownedElement

public Vector _ownedElement
Constructor Detail

NamespaceImpl

public NamespaceImpl()

NamespaceImpl

public NamespaceImpl(Name name)

NamespaceImpl

public NamespaceImpl(String nameStr)
Method Detail

getOwnedElement

public Vector getOwnedElement()
Specified by:
getOwnedElement in interface Namespace

setOwnedElement

public void setOwnedElement(Vector x)
                     throws PropertyVetoException
Specified by:
setOwnedElement in interface Namespace

addOwnedElement

public void addOwnedElement(ElementOwnership x)
                     throws PropertyVetoException
Specified by:
addOwnedElement in interface Namespace

removeOwnedElement

public void removeOwnedElement(ElementOwnership x)
                        throws PropertyVetoException
Specified by:
removeOwnedElement in interface Namespace

addPublicOwnedElement

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

addPrivateOwnedElement

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

addProtectedOwnedElement

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

addUnspecOwnedElement

public void addUnspecOwnedElement(ModelElement x)
                           throws PropertyVetoException

getModelElements

public Vector getModelElements()

elementOwnershipFor

public ElementOwnership elementOwnershipFor(ModelElement me,
                                            VisibilityKind vk)

findElementNamed

public ElementOwnership findElementNamed(String name)
Specified by:
findElementNamed in interface Namespace

contains

public boolean contains(ModelElement me)

contains

public boolean contains(ModelElement me,
                        VisibilityKind vk)

containsPublic

public boolean containsPublic(ModelElement me)

prepareForTrash

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

recoverFromTrash

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