org.eclipse.uml2.uml
Interface ConnectorEnd

All Superinterfaces:
Element, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.EObject, MultiplicityElement, org.eclipse.emf.common.notify.Notifier

public interface ConnectorEnd
extends MultiplicityElement

A representation of the model object 'Connector End'. A ConnectorEnd is an endpoint of a Connector, which attaches the Connector to a ConnectableElement.

From package UML::StructuredClassifiers.

The following features are supported:

See Also:
UMLPackage.getConnectorEnd()

Method Summary
 Property getDefiningEnd()
          Returns the value of the 'Defining End' reference
 Property getPartWithPort()
          Returns the value of the 'Part With Port' reference
 ConnectableElement getRole()
          Returns the value of the 'Role' reference
 void setPartWithPort(Property value)
          Sets the value of the 'Part With Port' reference
 void setRole(ConnectableElement value)
          Sets the value of the 'Role' reference
 boolean validateMultiplicity(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          The multiplicity of the ConnectorEnd may not be more general than the multiplicity of the corresponding end of the Association typing the owning Connector, if any.
 boolean validatePartWithPortEmpty(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          If a ConnectorEnd is attached to a Port of the containing Classifier, partWithPort will be empty.
 boolean validateRoleAndPartWithPort(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          If a ConnectorEnd references a partWithPort, then the role must be a Port that is defined or inherited by the type of the partWithPort.
 boolean validateSelfPartWithPort(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          The Property held in self.partWithPort must not be a Port.
 
Methods inherited from interface org.eclipse.uml2.uml.MultiplicityElement
compatibleWith, createLowerValue, createUpperValue, getLower, getLowerValue, getUpper, getUpperValue, includesMultiplicity, is, isMultivalued, isOrdered, isUnique, lowerBound, setIsOrdered, setIsUnique, setLower, setLowerValue, setUpper, setUpperValue, upperBound, validateLowerGe0, validateLowerIsInteger, validateUpperGeLower, validateUpperIsUnlimitedNatural, validateValueSpecificationConstant, validateValueSpecificationNoSideEffects
 
Methods inherited from interface org.eclipse.uml2.uml.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 org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getDefiningEnd

Property getDefiningEnd()
Returns the value of the 'Defining End' reference. A derived property referencing the corresponding end on the Association which types the Connector owing this ConnectorEnd, if any. It is derived by selecting the end at the same place in the ordering of Association ends as this ConnectorEnd.

From package UML::StructuredClassifiers.

Returns:
the value of the 'Defining End' reference.
See Also:
UMLPackage.getConnectorEnd_DefiningEnd()

getPartWithPort

Property getPartWithPort()
Returns the value of the 'Part With Port' reference. Indicates the role of the internal structure of a Classifier with the Port to which the ConnectorEnd is attached.

From package UML::StructuredClassifiers.

Returns:
the value of the 'Part With Port' reference.
See Also:
setPartWithPort(Property), UMLPackage.getConnectorEnd_PartWithPort()

setPartWithPort

void setPartWithPort(Property value)
Sets the value of the 'Part With Port' reference.

Parameters:
value - the new value of the 'Part With Port' reference.
See Also:
getPartWithPort()

getRole

ConnectableElement getRole()
Returns the value of the 'Role' reference. The ConnectableElement attached at this ConnectorEnd. When an instance of the containing Classifier is created, a link may (depending on the multiplicities) be created to an instance of the Classifier that types this ConnectableElement.

From package UML::StructuredClassifiers.

Returns:
the value of the 'Role' reference.
See Also:
setRole(ConnectableElement), UMLPackage.getConnectorEnd_Role()

setRole

void setRole(ConnectableElement value)
Sets the value of the 'Role' reference.

Parameters:
value - the new value of the 'Role' reference.
See Also:
getRole()

validateMultiplicity

boolean validateMultiplicity(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                             java.util.Map<java.lang.Object,java.lang.Object> context)
The multiplicity of the ConnectorEnd may not be more general than the multiplicity of the corresponding end of the Association typing the owning Connector, if any. self.compatibleWith(definingEnd)

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validatePartWithPortEmpty

boolean validatePartWithPortEmpty(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                  java.util.Map<java.lang.Object,java.lang.Object> context)
If a ConnectorEnd is attached to a Port of the containing Classifier, partWithPort will be empty. (role.oclIsKindOf(Port) and role.owner = connector.owner) implies partWithPort->isEmpty()

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateRoleAndPartWithPort

boolean validateRoleAndPartWithPort(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                    java.util.Map<java.lang.Object,java.lang.Object> context)
If a ConnectorEnd references a partWithPort, then the role must be a Port that is defined or inherited by the type of the partWithPort. partWithPort->notEmpty() implies (role.oclIsKindOf(Port) and partWithPort.type.oclAsType(Namespace).member->includes(role))

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateSelfPartWithPort

boolean validateSelfPartWithPort(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                 java.util.Map<java.lang.Object,java.lang.Object> context)
The Property held in self.partWithPort must not be a Port. partWithPort->notEmpty() implies not partWithPort.oclIsKindOf(Port)

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

Copyright 2003, 2014 IBM Corporation, CEA, and others.
All Rights Reserved.