public interface Connector extends Feature
The following features are supported:
UMLPackage.getConnector()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
ConnectorEnd |
createEnd()
Creates a new
ConnectorEnd and appends it to the 'End' containment reference list |
Behavior |
getContract(String name)
Retrieves the first
Behavior with the specified 'Name' from the '
Contract' reference list |
Behavior |
getContract(String name,
boolean ignoreCase,
EClass eClass)
Retrieves the first
Behavior 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 first
Connector with the specified 'Name' from the '
Redefined Connector' reference list |
Connector |
getRedefinedConnector(String name,
boolean ignoreCase)
Retrieves the first
Connector 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(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(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(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(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.
|
boolean |
validateCompatible(DiagnosticChain diagnostics,
Map context)
The connectable elements attached to the ends of a connector must be compatible.
|
boolean |
validateRoles(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(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(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.
|
getFeaturingClassifier, getFeaturingClassifier, getFeaturingClassifiers, isStatic, setIsStatic
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid
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
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
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
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
Association getType()
setType(Association)
,
UMLPackage.getConnector_Type()
void setType(Association value)
Type
' reference.
value
- the new value of the 'Type' reference.getType()
MDWEList<Connector> getRedefinedConnectors()
Connector
.
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.
UMLPackage.getConnector_RedefinedConnector()
Connector getRedefinedConnector(String name)
Connector
with the specified 'Name' from the '
Redefined Connector' reference list.
name
- The 'Name' of the Connector
to retrieve, or null
.Connector
with the specified 'Name', or null
.getRedefinedConnectors()
Connector getRedefinedConnector(String name, boolean ignoreCase)
Connector
with the specified 'Name' from the '
Redefined Connector' reference list.
name
- The 'Name' of the Connector
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.Connector
with the specified 'Name', or null
.getRedefinedConnectors()
MDWEList<ConnectorEnd> getEnds()
ConnectorEnd
.
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.
UMLPackage.getConnector_End()
ConnectorEnd createEnd()
ConnectorEnd
and appends it to the 'End' containment reference list.
ConnectorEnd
.getEnds()
ConnectorKind getKind()
ConnectorKind
.
Indicates the kind of connector.
ConnectorKind
,
isSetKind()
,
unsetKind()
,
setKind(ConnectorKind)
,
UMLPackage.getConnector_Kind()
void setKind(ConnectorKind value)
Kind
' attribute.
value
- the new value of the 'Kind' attribute.ConnectorKind
,
isSetKind()
,
unsetKind()
,
getKind()
void unsetKind()
Kind
' attribute.
isSetKind()
,
getKind()
,
setKind(ConnectorKind)
boolean isSetKind()
Kind
' attribute is set.
unsetKind()
,
getKind()
,
setKind(ConnectorKind)
MDWEList<Behavior> getContracts()
Behavior
.
The set of Behaviors that specify the valid interaction patterns across the connector.
UMLPackage.getConnector_Contract()
Behavior getContract(String name)
Behavior
with the specified 'Name' from the '
Contract' reference list.
name
- The 'Name' of the Behavior
to retrieve, or null
.Behavior
with the specified 'Name', or null
.getContracts()
Behavior getContract(String name, boolean ignoreCase, EClass eClass)
Behavior
with the specified 'Name' from the '
Contract' reference list.
name
- The 'Name' of the Behavior
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Behavior
to retrieve, or null
.Behavior
with the specified 'Name', or null
.getContracts()
boolean validateTypes(DiagnosticChain diagnostics, Map context)
boolean validateCompatible(DiagnosticChain diagnostics, Map context)
boolean validateRoles(DiagnosticChain diagnostics, Map context)
boolean validateBetweenInterfacesPorts(DiagnosticChain diagnostics, Map context)
boolean validateBetweenInterfacePortImplements(DiagnosticChain diagnostics, Map context)
boolean validateBetweenInterfacePortSignature(DiagnosticChain diagnostics, Map context)
boolean validateUnionSignatureCompatible(DiagnosticChain diagnostics, Map context)
boolean validateAssemblyConnector(DiagnosticChain diagnostics, Map context)