Package com.sodius.mdw.metamodel.uml21
Interface Slot
-
- All Superinterfaces:
Comparable<Object>,Element,org.eclipse.emf.ecore.EModelElement,org.eclipse.emf.ecore.EObject,MDWEObject,MDWObject,org.eclipse.emf.common.notify.Notifier
public interface Slot extends Element
A representation of the model object 'Slot'. A slot specifies that an entity modeled by an instance specification has a value or values for a specific structural feature.The following features are supported:
- See Also:
UMLPackage.getSlot()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValueSpecificationcreateValue(String name, Type type, org.eclipse.emf.ecore.EClass eClass)Creates a newValueSpecification, with the specified 'Name', and 'Type', and appends it to the 'Value' containment reference list.StructuralFeaturegetDefiningFeature()Returns the value of the 'Defining Feature' reference.InstanceSpecificationgetOwningInstance()Returns the value of the 'Owning Instance' container reference.ValueSpecificationgetValue(String name, Type type)Retrieves the firstValueSpecificationwith the specified 'Name', and ' Type' from the 'Value' containment reference list.ValueSpecificationgetValue(String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)Retrieves the firstValueSpecificationwith the specified 'Name', and ' Type' from the 'Value' containment reference list.MDWEList<ValueSpecification>getValues()Returns the value of the 'Value' containment reference list.voidsetDefiningFeature(StructuralFeature value)Sets the value of the 'Defining Feature' reference.voidsetOwningInstance(InstanceSpecification value)Sets the value of the 'Owning Instance' container reference.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, 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, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
-
-
-
Method Detail
-
getOwningInstance
InstanceSpecification getOwningInstance()
Returns the value of the 'Owning Instance' container reference. It is bidirectional and its opposite is 'Slot'. The instance specification that owns this slot.- Returns:
- the value of the 'Owning Instance' container reference.
- See Also:
setOwningInstance(InstanceSpecification),UMLPackage.getSlot_OwningInstance(),InstanceSpecification.getSlots()
-
setOwningInstance
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()
-
getDefiningFeature
StructuralFeature getDefiningFeature()
Returns the value of the 'Defining Feature' reference. 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),UMLPackage.getSlot_DefiningFeature()
-
setDefiningFeature
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()
-
getValues
MDWEList<ValueSpecification> getValues()
Returns the value of the 'Value' containment reference list. The list contents are of typeValueSpecification. The value or values corresponding to the defining feature for the owning instance specification.- Returns:
- the value of the 'Value' containment reference list.
- See Also:
UMLPackage.getSlot_Value()
-
createValue
ValueSpecification createValue(String name, Type type, org.eclipse.emf.ecore.EClass eClass)
Creates a newValueSpecification, with the specified 'Name', and 'Type', and appends it to the 'Value' containment reference list.- Parameters:
name- The 'Name' for the newValueSpecification, ornull.type- The 'Type' for the newValueSpecification, ornull.eClass- The Ecore class of theValueSpecificationto create.- Returns:
- The new
ValueSpecification. - See Also:
getValues()
-
getValue
ValueSpecification getValue(String name, Type type)
Retrieves the firstValueSpecificationwith the specified 'Name', and ' Type' from the 'Value' containment reference list.- Parameters:
name- The 'Name' of theValueSpecificationto retrieve, ornull.type- The 'Type' of theValueSpecificationto retrieve, ornull.- Returns:
- The first
ValueSpecificationwith the specified 'Name', and ' Type', ornull. - See Also:
getValues()
-
getValue
ValueSpecification getValue(String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Retrieves the firstValueSpecificationwith the specified 'Name', and ' Type' from the 'Value' containment reference list.- Parameters:
name- The 'Name' of theValueSpecificationto retrieve, ornull.type- The 'Type' of theValueSpecificationto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of theValueSpecificationto retrieve, ornull.createOnDemand- Whether to create aValueSpecificationon demand if not found.- Returns:
- The first
ValueSpecificationwith the specified 'Name', and ' Type', ornull. - See Also:
getValues()
-
-