org.eclipse.uml2
Interface Connector

All Superinterfaces:
Element, EModelElement, EObject, Feature, NamedElement, Notifier, RedefinableElement, TemplateableElement

public interface Connector
extends Feature

A representation of the model object 'Connector'. Each connector may be attached to two or more connectable elements, each representing a set of instances. Each connector end

The following features are supported:

See Also:
UML2Package.getConnector()

Field Summary
static String copyright
           
 
Fields inherited from interface org.eclipse.uml2.NamedElement
SEPARATOR
 
Method Summary
 ConnectorEnd createEnd(EClass eClass)
          Creates a ConnectorEnd and appends it to the 'End' containment reference list
 Behavior getContract(String unqualifiedName)
          Retrieves the Behavior with the specified name from the 'Contract' reference list
 EList getContracts()
          Returns the value of the 'Contract' reference list.
 EList getEnds()
          Returns the value of the 'End' containment reference list.
 ConnectorKind getKind()
          Returns the value of the 'Kind' attribute.
 EList getOwnedElements()
           
 Connector getRedefinedConnector(String unqualifiedName)
          Retrieves the Connector with the specified name from the 'Redefined Connector' reference list
 EList getRedefinedConnectors()
          Returns the value of the 'Redefined Connector' reference list.
 EList getRedefinedElements()
           
 Association getType()
          Returns the value of the 'Type' reference
 void setKind(ConnectorKind value)
          Sets the value of the 'Kind' attribute
 void setType(Association value)
          Sets the value of the 'Type' reference
 
Methods inherited from interface org.eclipse.uml2.Feature
getFeaturingClassifier, getFeaturingClassifiers, isStatic, setIsStatic
 
Methods inherited from interface org.eclipse.uml2.RedefinableElement
getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid
 
Methods inherited from interface org.eclipse.uml2.NamedElement
allNamespaces, createNameExpression, getClientDependencies, getClientDependency, getName, getNameExpression, getNamespace, getOwner, getQualifiedName, getVisibility, isDistinguishableFrom, qualifiedName, separator, setName, setNameExpression, setVisibility, validateNoName, validateQualifiedName, validateVisibilityNeedsOwnership
 
Methods inherited from interface org.eclipse.uml2.TemplateableElement
createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBindings, parameterableElements, setOwnedTemplateSignature
 
Methods inherited from interface org.eclipse.uml2.Element
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getValue, hasKeyword, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, 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
 

Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values
Method Detail

getKind

public ConnectorKind getKind()
Returns the value of the 'Kind' attribute. The literals are from the enumeration ConnectorKind.

If the meaning of the 'Kind' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Kind' attribute.
See Also:
ConnectorKind, setKind(ConnectorKind), UML2Package.getConnector_Kind()

setKind

public void setKind(ConnectorKind value)
Sets the value of the 'Kind' attribute.

Parameters:
value - the new value of the 'Kind' attribute.
See Also:
ConnectorKind, getKind()

getType

public Association getType()
Returns the value of the 'Type' reference.

If the meaning of the 'Type' reference isn't clear, there really should be more of a description here...

An optional association that specifies the link corresponding to this connector.

Returns:
the value of the 'Type' reference.
See Also:
setType(Association), UML2Package.getConnector_Type()

setType

public void setType(Association value)
Sets the value of the 'Type' reference.

Parameters:
value - the new value of the 'Type' reference.
See Also:
getType()

getRedefinedConnectors

public EList getRedefinedConnectors()
Returns the value of the 'Redefined Connector' reference list. The list contents are of type Connector.

If the meaning of the 'Redefined Connector' reference list isn't clear, there really should be more of a description here...

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. (Subsets Element.redefinedElement.)

Returns:
the value of the 'Redefined Connector' reference list.
See Also:
UML2Package.getConnector_RedefinedConnector()

getRedefinedConnector

public Connector getRedefinedConnector(String unqualifiedName)
Retrieves the Connector with the specified name from the 'Redefined Connector' reference list.

Parameters:
unqualifiedName - The unqualified name of the Connector to retrieve.
Returns:
The Connector with the specified name, or null.
See Also:
getRedefinedConnectors()

getEnds

public EList getEnds()
Returns the value of the 'End' containment reference list. The list contents are of type ConnectorEnd.

If the meaning of the 'End' containment reference list isn't clear, there really should be more of a description here...

A connector consists of at two connector ends, each of which represents the participation of instances of the classifiers typing the connectable elements attached to this end. The set of connector ends is ordered. (Subsets Element.ownedElement.)

Returns:
the value of the 'End' containment reference list.
See Also:
UML2Package.getConnector_End()

createEnd

public ConnectorEnd createEnd(EClass eClass)
Creates a ConnectorEnd and appends it to the 'End' containment reference list.

Parameters:
eClass - The Ecore class of the ConnectorEnd to create.
Returns:
The new ConnectorEnd.
See Also:
getEnds()

getContracts

public EList getContracts()
Returns the value of the 'Contract' reference list. The list contents are of type Behavior.

If the meaning of the 'Contract' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Contract' reference list.
See Also:
UML2Package.getConnector_Contract()

getContract

public Behavior getContract(String unqualifiedName)
Retrieves the Behavior with the specified name from the 'Contract' reference list.

Parameters:
unqualifiedName - The unqualified name of the Behavior to retrieve.
Returns:
The Behavior with the specified name, or null.
See Also:
getContracts()

getRedefinedElements

public EList getRedefinedElements()

Specified by:
getRedefinedElements in interface RedefinableElement

getOwnedElements

public EList getOwnedElements()

Specified by:
getOwnedElements in interface NamedElement

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