Package com.sodius.mdw.metamodel.uml21
Interface Connector
-
- All Superinterfaces:
Comparable<Object>
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,Feature
,MDWEObject
,MDWObject
,NamedElement
,org.eclipse.emf.common.notify.Notifier
,RedefinableElement
public interface Connector extends Feature
A representation of the model object 'Connector'. Specifies a link that enables communication between two or more instances. This link may be an instance of an association, or it may represent the possibility of the instances being able to communicate because their identities are known by virtue of being passed in as parameters, held in variables or slots, or because the communicating instances are the same instance. The link may be realized by something as simple as a pointer or by something as complex as a network connection. In contrast to associations, which specify links between any instance of the associated classifiers, connectors specify links between instances playing the connected parts only. A delegation connector is a connector that links the external contract of a component (as specified by its ports) to the internal realization of that behavior by the component's parts. It represents the forwarding of signals (operation requests and events): a signal that arrives at a port that has a delegation connector to a part or to another port will be passed on to that target for handling. An assembly connector is a connector between two components that defines that one component provides the services that another component requires. An assembly connector is a connector that is defined from a required interface or port to a provided interface or port.The following features are supported:
- See Also:
UMLPackage.getConnector()
-
-
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 ConnectorEnd
createEnd()
Creates a newConnectorEnd
and appends it to the 'End' containment reference list.Behavior
getContract(String name)
Retrieves the firstBehavior
with the specified 'Name' from the ' Contract' reference list.Behavior
getContract(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstBehavior
with the specified 'Name' from the ' Contract' reference list.MDWEList<Behavior>
getContracts()
Returns the value of the 'Contract' reference list.MDWEList<ConnectorEnd>
getEnds()
Returns the value of the 'End' containment reference list.ConnectorKind
getKind()
Returns the value of the 'Kind' attribute.Connector
getRedefinedConnector(String name)
Retrieves the firstConnector
with the specified 'Name' from the ' Redefined Connector' reference list.Connector
getRedefinedConnector(String name, boolean ignoreCase)
Retrieves the firstConnector
with the specified 'Name' from the ' Redefined Connector' reference list.MDWEList<Connector>
getRedefinedConnectors()
Returns the value of the 'Redefined Connector' reference list.Association
getType()
Returns the value of the 'Type' reference.boolean
isSetKind()
Returns whether the value of the 'Kind
' attribute is set.void
setKind(ConnectorKind value)
Sets the value of the 'Kind
' attribute.void
setType(Association value)
Sets the value of the 'Type
' reference.void
unsetKind()
Unsets the value of the 'Kind
' attribute.boolean
validateAssemblyConnector(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
An assembly connector must only be defined from a required Interface or Ports to a provided Interface or Port.boolean
validateBetweenInterfacePortImplements(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
If a delegation connector is defined between a used Interface or Port and an internal Part Classifier, then that Classifier must have an 'implements' relationship to the Interface type of that Port.boolean
validateBetweenInterfacePortSignature(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
If a delegation connector is defined between a source Interface or Port and a target Interface or Port, then the target Interface must support a signature compatible subset of Operations of the source Interface or Port.boolean
validateBetweenInterfacesPorts(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
A delegation connector must only be defined between used Interfaces or Ports of the same kind, e.g.boolean
validateCompatible(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The connectable elements attached to the ends of a connector must be compatible.boolean
validateRoles(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The ConnectableElements attached as roles to each ConnectorEnd owned by a Connector must be roles of the Classifier that owned the Connector, or they must be ports of such roles.boolean
validateTypes(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The types of the connectable elements that the ends of a connector are attached to must conform to the types of the association ends of the association that types the connector, if any.boolean
validateUnionSignatureCompatible(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
In a complete model, if a source Port has delegation connectors to a set of delegated target Ports, then the union of the Interfaces of these target Ports must be signature compatible with the Interface that types the source Port.-
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.metamodel.uml21.Feature
getFeaturingClassifier, getFeaturingClassifier, getFeaturingClassifiers, isStatic, setIsStatic
-
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.RedefinableElement
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid
-
-
-
-
Method Detail
-
getType
Association getType()
Returns the value of the 'Type' reference. An optional association that specifies the link corresponding to this connector.- Returns:
- the value of the 'Type' reference.
- See Also:
setType(Association)
,UMLPackage.getConnector_Type()
-
setType
void setType(Association value)
Sets the value of the 'Type
' reference.- Parameters:
value
- the new value of the 'Type' reference.- See Also:
getType()
-
getRedefinedConnectors
MDWEList<Connector> getRedefinedConnectors()
Returns the value of the 'Redefined Connector' reference list. The list contents are of typeConnector
. A connector may be redefined when its containing classifier is specialized. The redefining connector may have a type that specializes the type of the redefined connector. The types of the connector ends of the redefining connector may specialize the types of the connector ends of the redefined connector. The properties of the connector ends of the redefining connector may be replaced.- Returns:
- the value of the 'Redefined Connector' reference list.
- See Also:
UMLPackage.getConnector_RedefinedConnector()
-
getRedefinedConnector
Connector getRedefinedConnector(String name)
Retrieves the firstConnector
with the specified 'Name' from the ' Redefined Connector' reference list.- Parameters:
name
- The 'Name' of theConnector
to retrieve, ornull
.- Returns:
- The first
Connector
with the specified 'Name', ornull
. - See Also:
getRedefinedConnectors()
-
getRedefinedConnector
Connector getRedefinedConnector(String name, boolean ignoreCase)
Retrieves the firstConnector
with the specified 'Name' from the ' Redefined Connector' reference list.- Parameters:
name
- The 'Name' of theConnector
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.- Returns:
- The first
Connector
with the specified 'Name', ornull
. - See Also:
getRedefinedConnectors()
-
getEnds
MDWEList<ConnectorEnd> getEnds()
Returns the value of the 'End' containment reference list. The list contents are of typeConnectorEnd
. A connector consists of at least two connector ends, each representing the participation of instances of the classifiers typing the connectable elements attached to this end. The set of connector ends is ordered.- Returns:
- the value of the 'End' containment reference list.
- See Also:
UMLPackage.getConnector_End()
-
createEnd
ConnectorEnd createEnd()
Creates a newConnectorEnd
and appends it to the 'End' containment reference list.- Returns:
- The new
ConnectorEnd
. - See Also:
getEnds()
-
getKind
ConnectorKind getKind()
Returns the value of the 'Kind' attribute. The literals are from the enumerationConnectorKind
. Indicates the kind of connector.- Returns:
- the value of the 'Kind' attribute.
- See Also:
ConnectorKind
,isSetKind()
,unsetKind()
,setKind(ConnectorKind)
,UMLPackage.getConnector_Kind()
-
setKind
void setKind(ConnectorKind value)
Sets the value of the 'Kind
' attribute.- Parameters:
value
- the new value of the 'Kind' attribute.- See Also:
ConnectorKind
,isSetKind()
,unsetKind()
,getKind()
-
unsetKind
void unsetKind()
Unsets the value of the 'Kind
' attribute.- See Also:
isSetKind()
,getKind()
,setKind(ConnectorKind)
-
isSetKind
boolean isSetKind()
Returns whether the value of the 'Kind
' attribute is set.- Returns:
- whether the value of the 'Kind' attribute is set.
- See Also:
unsetKind()
,getKind()
,setKind(ConnectorKind)
-
getContracts
MDWEList<Behavior> getContracts()
Returns the value of the 'Contract' reference list. The list contents are of typeBehavior
. The set of Behaviors that specify the valid interaction patterns across the connector.- Returns:
- the value of the 'Contract' reference list.
- See Also:
UMLPackage.getConnector_Contract()
-
getContract
Behavior getContract(String name)
Retrieves the firstBehavior
with the specified 'Name' from the ' Contract' reference list.- Parameters:
name
- The 'Name' of theBehavior
to retrieve, ornull
.- Returns:
- The first
Behavior
with the specified 'Name', ornull
. - See Also:
getContracts()
-
getContract
Behavior getContract(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstBehavior
with the specified 'Name' from the ' Contract' reference list.- Parameters:
name
- The 'Name' of theBehavior
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of theBehavior
to retrieve, ornull
.- Returns:
- The first
Behavior
with the specified 'Name', ornull
. - See Also:
getContracts()
-
validateTypes
boolean validateTypes(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The types of the connectable elements that the ends of a connector are attached to must conform to the types of the association ends of the association that types the connector, if any. true
-
validateCompatible
boolean validateCompatible(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The connectable elements attached to the ends of a connector must be compatible. true
-
validateRoles
boolean validateRoles(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The ConnectableElements attached as roles to each ConnectorEnd owned by a Connector must be roles of the Classifier that owned the Connector, or they must be ports of such roles. true
-
validateBetweenInterfacesPorts
boolean validateBetweenInterfacesPorts(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
A delegation connector must only be defined between used Interfaces or Ports of the same kind, e.g. between two provided Ports or between two required Ports. true
-
validateBetweenInterfacePortImplements
boolean validateBetweenInterfacePortImplements(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
If a delegation connector is defined between a used Interface or Port and an internal Part Classifier, then that Classifier must have an 'implements' relationship to the Interface type of that Port. true
-
validateBetweenInterfacePortSignature
boolean validateBetweenInterfacePortSignature(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
If a delegation connector is defined between a source Interface or Port and a target Interface or Port, then the target Interface must support a signature compatible subset of Operations of the source Interface or Port. true
-
validateUnionSignatureCompatible
boolean validateUnionSignatureCompatible(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
In a complete model, if a source Port has delegation connectors to a set of delegated target Ports, then the union of the Interfaces of these target Ports must be signature compatible with the Interface that types the source Port. true
-
validateAssemblyConnector
boolean validateAssemblyConnector(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
An assembly connector must only be defined from a required Interface or Ports to a provided Interface or Port. true
-
-