org.eclipse.uml2.uml
Interface ConnectorEnd

All Superinterfaces:
Element, EModelElement, EObject, MultiplicityElement, Notifier

public interface ConnectorEnd
extends MultiplicityElement

A representation of the model object 'Connector End'. A connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector end is part of one connector.

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(DiagnosticChain diagnostics, Map context)
           The multiplicity of the connector end may not be more general than the multiplicity of the association typing the owning connector.
 boolean validatePartWithPortEmpty(DiagnosticChain diagnostics, Map context)
           If a connector end is attached to a port of the containing classifier, partWithPort will be empty.
 boolean validateRoleAndPartWithPort(DiagnosticChain diagnostics, Map context)
           If a connector end references both a role and a partWithPort, then the role must be a port that is defined by the type of the partWithPort.
 boolean validateSelfPartWithPort(DiagnosticChain diagnostics, Map 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, includesCardinality, includesMultiplicity, is, isMultivalued, isOrdered, isUnique, lowerBound, setIsOrdered, setIsUnique, setLower, setLowerValue, setUpper, setUpperValue, upperBound, validateLowerGe0, validateUpperGeLower, validateUpperGt0, 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, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getDefiningEnd

public Property getDefiningEnd()
Returns the value of the 'Defining End' reference. A derived association referencing the corresponding association end on the association which types the connector owing this connector end. This association is derived by selecting the association end at the same place in the ordering of association ends as this connector end.

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

getPartWithPort

public 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 connector end is attached.

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

setPartWithPort

public 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:
ConnectorEnd.getPartWithPort()

getRole

public ConnectableElement getRole()
Returns the value of the 'Role' reference. It is bidirectional and its opposite is 'End'. The connectable element attached at this connector end. 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 connectable element.

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

setRole

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

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

validateMultiplicity

public boolean validateMultiplicity(DiagnosticChain diagnostics,
                                    Map context)
The multiplicity of the connector end may not be more general than the multiplicity of the association typing the owning connector. true


validatePartWithPortEmpty

public boolean validatePartWithPortEmpty(DiagnosticChain diagnostics,
                                         Map context)
If a connector end is attached to a port of the containing classifier, partWithPort will be empty. true


validateRoleAndPartWithPort

public boolean validateRoleAndPartWithPort(DiagnosticChain diagnostics,
                                           Map context)
If a connector end references both a role and a partWithPort, then the role must be a port that is defined by the type of the partWithPort. true


validateSelfPartWithPort

public boolean validateSelfPartWithPort(DiagnosticChain diagnostics,
                                        Map context)
The property held in self.partWithPort must not be a Port. true


Copyright 2003, 2006 IBM Corporation and others.
All Rights Reserved.