org.eclipse.uml2
Interface Slot

All Superinterfaces:
Element, EModelElement, EObject, Notifier

public interface Slot
extends Element

A representation of the model object 'Slot'. A slot is owned by an instance specification. It specifies the value or values for its defining feature, which must be a structural feature of a classifier of the instance specification owning the slot.

The following features are supported:

See Also:
UML2Package.getSlot()

Field Summary
static String copyright
           
 
Method Summary
 ValueSpecification createValue(EClass eClass)
          Creates a ValueSpecification and appends it to the 'Value' containment reference list
 StructuralFeature getDefiningFeature()
          Returns the value of the 'Defining Feature' reference
 EList getOwnedElements()
           
 Element getOwner()
           
 InstanceSpecification getOwningInstance()
          Returns the value of the 'Owning Instance' container reference.
 ValueSpecification getValue(String unqualifiedName)
          Retrieves the ValueSpecification with the specified name from the 'Value' containment reference list
 EList getValues()
          Returns the value of the 'Value' containment reference list.
 void setDefiningFeature(StructuralFeature value)
          Sets the value of the 'Defining Feature' reference
 void setOwningInstance(InstanceSpecification value)
          Sets the value of the 'Owning Instance' container reference
 
Methods inherited from interface org.eclipse.uml2.Element
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getValue, hasKeyword, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, validateHasOwner, validateNotOwnSelf
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values
Method Detail

getOwningInstance

public InstanceSpecification getOwningInstance()
Returns the value of the 'Owning Instance' container reference. It is bidirectional and its opposite is 'Slot'.

If the meaning of the 'Owning Instance' container reference isn't clear, there really should be more of a description here...

The instance specification that owns this slot. Subsets Element::owner.

Returns:
the value of the 'Owning Instance' container reference.
See Also:
setOwningInstance(InstanceSpecification), UML2Package.getSlot_OwningInstance(), InstanceSpecification.getSlots()

setOwningInstance

public void setOwningInstance(InstanceSpecification value)
Sets the value of the 'Owning Instance' container reference.

Parameters:
value - the new value of the 'Owning Instance' container reference.
See Also:
getOwningInstance()

getValues

public EList getValues()
Returns the value of the 'Value' containment reference list. The list contents are of type ValueSpecification.

If the meaning of the 'Value' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Value' containment reference list.
See Also:
UML2Package.getSlot_Value()

getValue

public ValueSpecification getValue(String unqualifiedName)
Retrieves the ValueSpecification with the specified name from the 'Value' containment reference list.

Parameters:
unqualifiedName - The unqualified name of the ValueSpecification to retrieve.
Returns:
The ValueSpecification with the specified name, or null.
See Also:
getValues()

createValue

public ValueSpecification createValue(EClass eClass)
Creates a ValueSpecification and appends it to the 'Value' containment reference list.

Parameters:
eClass - The Ecore class of the ValueSpecification to create.
Returns:
The new ValueSpecification.
See Also:
getValues()

getDefiningFeature

public StructuralFeature getDefiningFeature()
Returns the value of the 'Defining Feature' reference.

If the meaning of the 'Defining Feature' reference isn't clear, there really should be more of a description here...

The structural feature that specifies the values that may be held by the slot.

Returns:
the value of the 'Defining Feature' reference.
See Also:
setDefiningFeature(StructuralFeature), UML2Package.getSlot_DefiningFeature()

setDefiningFeature

public void setDefiningFeature(StructuralFeature value)
Sets the value of the 'Defining Feature' reference.

Parameters:
value - the new value of the 'Defining Feature' reference.
See Also:
getDefiningFeature()

getOwner

public Element getOwner()

Specified by:
getOwner in interface Element
Returns:
the value of the 'Owner' reference.
See Also:
UML2Package.getElement_Owner(), Element.getOwnedElements()

getOwnedElements

public EList getOwnedElements()

Specified by:
getOwnedElements in interface Element
Returns:
the value of the 'Owned Element' reference list.
See Also:
UML2Package.getElement_OwnedElement(), Element.getOwner()

Copyright 2003, 2004 IBM Corporation and others.
All Rights Reserved.