|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connector
A representation of the model object 'Connector'. A delegation connector is a connector that links the external contract of a component (as specified by its ports) to the realization of that behavior. It represents the forwarding of events (operation requests and events): a signal that arrives at a port that has a delegation connector to one or more parts or ports on parts will be passed on to those targets for handling. An assembly connector is a connector between two or more parts or ports on parts that defines that one or more parts provide the services that other parts use. 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.
The following features are supported:
UMLPackage.getConnector()
Field Summary |
---|
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
---|
SEPARATOR |
Method Summary | |
---|---|
ConnectorEnd |
createEnd()
Creates a new ConnectorEnd and appends it to the 'End' containment reference list |
Behavior |
getContract(java.lang.String name)
Retrieves the first Behavior with the specified 'Name' from the 'Contract' reference list |
Behavior |
getContract(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first Behavior with the specified 'Name' from the 'Contract' reference list |
org.eclipse.emf.common.util.EList<Behavior> |
getContracts()
Returns the value of the 'Contract' reference list. |
org.eclipse.emf.common.util.EList<ConnectorEnd> |
getEnds()
Returns the value of the 'End' containment reference list. |
ConnectorKind |
getKind()
Returns the value of the 'Kind' attribute. |
Connector |
getRedefinedConnector(java.lang.String name)
Retrieves the first Connector with the specified 'Name' from the 'Redefined Connector' reference list |
Connector |
getRedefinedConnector(java.lang.String name,
boolean ignoreCase)
Retrieves the first Connector with the specified 'Name' from the 'Redefined Connector' reference list |
org.eclipse.emf.common.util.EList<Connector> |
getRedefinedConnectors()
Returns the value of the 'Redefined Connector' reference list. |
Association |
getType()
Returns the value of the 'Type' reference |
void |
setType(Association value)
Sets the value of the ' Type ' reference |
boolean |
validateBetweenInterfacesPorts(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Each feature of each of the required interfaces of each Port or Part at the end of a connector must have at least one compatible feature among the features of the provided interfaces of Ports or Parts at the other ends, where the required set of (interface) features of a delegating port from the context of the delegating connector is the set of features that exist in the port's provided interfaces, and the provided set of (interface) features of a delegating port from the context of the delegating connector is the set of features that exist in the port's required interfaces. |
boolean |
validateCompatible(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The connectable elements attached to the ends of a connector must be compatible. |
boolean |
validateRoles(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> 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,
java.util.Map<java.lang.Object,java.lang.Object> 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. |
Methods inherited from interface org.eclipse.uml2.uml.Feature |
---|
getFeaturingClassifier, getFeaturingClassifier, getFeaturingClassifiers, isStatic, setIsStatic |
Methods inherited from interface org.eclipse.uml2.uml.RedefinableElement |
---|
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateNonLeafRedefinition, validateRedefinitionConsistent, validateRedefinitionContextValid |
Methods inherited from interface org.eclipse.uml2.uml.NamedElement |
---|
allNamespaces, allOwningPackages, createDependency, createNameExpression, createUsage, 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.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 org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
---|
Association getType()
setType(Association)
,
UMLPackage.getConnector_Type()
void setType(Association value)
Type
' reference.
value
- the new value of the 'Type' reference.getType()
org.eclipse.emf.common.util.EList<Connector> getRedefinedConnectors()
Connector
.
This feature subsets the following features:
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(java.lang.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(java.lang.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()
org.eclipse.emf.common.util.EList<ConnectorEnd> getEnds()
ConnectorEnd
.
This feature subsets the following features:
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. This is derived: a connector with one or more ends connected to a Port which is not on a Part and which is not a behavior port is a delegation; otherwise it is an assembly.
ConnectorKind
,
UMLPackage.getConnector_Kind()
org.eclipse.emf.common.util.EList<Behavior> getContracts()
Behavior
.
The set of Behaviors that specify the valid interaction patterns across the connector.
UMLPackage.getConnector_Contract()
Behavior getContract(java.lang.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(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.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(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateCompatible(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateRoles(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateBetweenInterfacesPorts(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
|
Copyright 2003, 2012 IBM Corporation, CEA, and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |