Package com.sodius.mdw.metamodel.uml21
Interface InstanceSpecification
-
- All Superinterfaces:
Comparable<Object>
,DeployedArtifact
,DeploymentTarget
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,MDWEObject
,MDWObject
,NamedElement
,org.eclipse.emf.common.notify.Notifier
,PackageableElement
,ParameterableElement
- All Known Subinterfaces:
EnumerationLiteral
public interface InstanceSpecification extends DeploymentTarget, PackageableElement, DeployedArtifact
A representation of the model object 'Instance Specification'. An instance specification is a model element that represents an instance in a modeled system. An instance specification has the capability of being a deployment target in a deployment relationship, in the case that it is an instance of a node. It is also has the capability of being a deployed artifact, if it is an instance of an artifact.The following features are supported:
- See Also:
UMLPackage.getInstanceSpecification()
-
-
Field Summary
-
Fields inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
SEPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Slot
createSlot()
Creates a newSlot
and appends it to the 'Slot' containment reference list.ValueSpecification
createSpecification(String name, Type type, org.eclipse.emf.ecore.EClass eClass)
Creates a newValueSpecification
, with the specified 'Name', and 'Type', and sets the 'Specification' containment reference.Classifier
getClassifier(String name)
Retrieves the firstClassifier
with the specified 'Name' from the ' Classifier' reference list.Classifier
getClassifier(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstClassifier
with the specified 'Name' from the ' Classifier' reference list.MDWEList<Classifier>
getClassifiers()
Returns the value of the 'Classifier' reference list.MDWEList<Slot>
getSlots()
Returns the value of the 'Slot' containment reference list.ValueSpecification
getSpecification()
Returns the value of the 'Specification' containment reference.void
setSpecification(ValueSpecification value)
Sets the value of the 'Specification
' containment reference.boolean
validateDefiningFeature(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The defining feature of each slot is a structural feature (directly or inherited) of a classifier of the instance specification.boolean
validateDeploymentArtifact(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
An InstanceSpecification can be a DeployedArtifact if it is the instance specification of an Artifact.boolean
validateDeploymentTarget(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
An InstanceSpecification can be a DeploymentTarget if it is the instance specification of a Node and functions as a part in the internal structure of an encompassing Node.boolean
validateStructuralFeature(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
One structural feature (including the same feature inherited from multiple classifiers) is the defining feature of at most one slot in an instance specification.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.DeploymentTarget
createDeployment, getDeployedElement, getDeployedElement, getDeployedElements, getDeployment, getDeployment, getDeployments
-
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
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
-
-
-
-
Method Detail
-
getClassifiers
MDWEList<Classifier> getClassifiers()
Returns the value of the 'Classifier' reference list. The list contents are of typeClassifier
. The classifier or classifiers of the represented instance. If multiple classifiers are specified, the instance is classified by all of them.- Returns:
- the value of the 'Classifier' reference list.
- See Also:
UMLPackage.getInstanceSpecification_Classifier()
-
getClassifier
Classifier getClassifier(String name)
Retrieves the firstClassifier
with the specified 'Name' from the ' Classifier' reference list.- Parameters:
name
- The 'Name' of theClassifier
to retrieve, ornull
.- Returns:
- The first
Classifier
with the specified 'Name', ornull
. - See Also:
getClassifiers()
-
getClassifier
Classifier getClassifier(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstClassifier
with the specified 'Name' from the ' Classifier' reference list.- Parameters:
name
- The 'Name' of theClassifier
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of theClassifier
to retrieve, ornull
.- Returns:
- The first
Classifier
with the specified 'Name', ornull
. - See Also:
getClassifiers()
-
getSpecification
ValueSpecification getSpecification()
Returns the value of the 'Specification' containment reference. A specification of how to compute, derive, or construct the instance.- Returns:
- the value of the 'Specification' containment reference.
- See Also:
setSpecification(ValueSpecification)
,UMLPackage.getInstanceSpecification_Specification()
-
setSpecification
void setSpecification(ValueSpecification value)
Sets the value of the 'Specification
' containment reference.- Parameters:
value
- the new value of the 'Specification' containment reference.- See Also:
getSpecification()
-
createSpecification
ValueSpecification createSpecification(String name, Type type, org.eclipse.emf.ecore.EClass eClass)
Creates a newValueSpecification
, with the specified 'Name', and 'Type', and sets the 'Specification' containment reference.- Parameters:
name
- The 'Name' for the newValueSpecification
, ornull
.type
- The 'Type' for the newValueSpecification
, ornull
.eClass
- The Ecore class of theValueSpecification
to create.- Returns:
- The new
ValueSpecification
. - See Also:
getSpecification()
-
getSlots
MDWEList<Slot> getSlots()
Returns the value of the 'Slot' containment reference list. The list contents are of typeSlot
. It is bidirectional and its opposite is 'Owning Instance
'. A slot giving the value or values of a structural feature of the instance. An instance specification can have one slot per structural feature of its classifiers, including inherited features. It is not necessary to model a slot for each structural feature, in which case the instance specification is a partial description.- Returns:
- the value of the 'Slot' containment reference list.
- See Also:
UMLPackage.getInstanceSpecification_Slot()
,Slot.getOwningInstance()
-
createSlot
Slot createSlot()
Creates a newSlot
and appends it to the 'Slot' containment reference list.- Returns:
- The new
Slot
. - See Also:
getSlots()
-
validateDefiningFeature
boolean validateDefiningFeature(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The defining feature of each slot is a structural feature (directly or inherited) of a classifier of the instance specification. slot->forAll(s | classifier->exists (c | c.allFeatures()->includes (s.definingFeature)))
-
validateStructuralFeature
boolean validateStructuralFeature(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
One structural feature (including the same feature inherited from multiple classifiers) is the defining feature of at most one slot in an instance specification. classifier->forAll(c | (c.allFeatures()->forAll(f | slot->select(s | s.definingFeature = f)->size() <= 1)))
-
validateDeploymentTarget
boolean validateDeploymentTarget(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
An InstanceSpecification can be a DeploymentTarget if it is the instance specification of a Node and functions as a part in the internal structure of an encompassing Node. true
-
validateDeploymentArtifact
boolean validateDeploymentArtifact(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
An InstanceSpecification can be a DeployedArtifact if it is the instance specification of an Artifact. true
-
-