|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.impl.AdapterImpl
org.jupe.editors.classdiagram.model.ModelElement
org.jupe.editors.classdiagram.model.connections.ConnectionElement
public abstract class ConnectionElement
Base class for model element that represent a connection between two node elements of a class diagram.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
---|
org.eclipse.emf.common.notify.Adapter.Internal |
Field Summary | |
---|---|
static java.lang.String |
ENDPOINT_PROP
Property ID for the target NodeModelElement of a connection. |
static java.lang.String |
SOURCE_PROP
Property ID for the source NodeModelElement of a connection. |
Fields inherited from class org.jupe.editors.classdiagram.model.ModelElement |
---|
GENERAL_CHANGE_PROP |
Constructor Summary | |
---|---|
ConnectionElement()
Default constructor. |
|
ConnectionElement(NodeModelElement sourceElement,
NodeModelElement targetElement)
Constructor for ConnectionElement which creates a connection between two distinct NodeModelElements. |
Method Summary | |
---|---|
void |
disconnect()
Disconnect this connection from the NodeModelElement it is attached to. |
java.util.List |
getChildren()
A connection should not have any children |
ClassDiagram |
getClassDiagram()
|
NodeModelElement |
getEndPoint()
Returns the endPoint endpoint of this connection. |
NodeModelElement |
getSource()
Returns the source endpoint of this connection. |
void |
reconnect()
Reconnect this connection. |
void |
reconnect(NodeModelElement newSource,
NodeModelElement newEndPoint)
Reconnect to a different source and/or endPoint NodeModelElement. |
void |
setSource(NodeModelElement newSource)
Set the source endpoint of this connection. |
void |
setTarget(NodeModelElement newEndPoint)
Set the endPoint endpoint of this connection. |
void |
setUML2Element(org.eclipse.uml2.uml.Element uml2Element)
(non-Javadoc) |
Methods inherited from class org.jupe.editors.classdiagram.model.ModelElement |
---|
addPropertyChangeListener, getEditableValue, getPropertyDescriptors, getPropertyValue, getUML2Element, isPropertySet, notifyChanged, removePropertyChangeListener, resetPropertyValue, setPropertyValue |
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
---|
getTarget, isAdapterForType, setTarget, unsetTarget |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SOURCE_PROP
Value: None. Property cannot be get or set, but is only used for
ModelElement.firePropertyChange(String, Object, Object)
.
public static final java.lang.String ENDPOINT_PROP
Value: None. Property cannot be get or set, but is only used for
ModelElement.firePropertyChange(String, Object, Object)
.
Constructor Detail |
---|
public ConnectionElement()
public ConnectionElement(NodeModelElement sourceElement, NodeModelElement targetElement)
sourceElement
- a source endpoint for this connection (non null)targetElement
- a target endpoint for this connection (non null)
java.lang.IllegalArgumentException
- if any of the parameters are null or source == targetMethod Detail |
---|
public void disconnect()
public NodeModelElement getSource()
public void setSource(NodeModelElement newSource)
newSource
- the new source point given as NodeModelElementpublic NodeModelElement getEndPoint()
public void setTarget(NodeModelElement newEndPoint)
newEndPoint
- the new endPoint point given as NodeModelElementpublic void reconnect()
public void reconnect(NodeModelElement newSource, NodeModelElement newEndPoint)
newSource
- a new source endpoint for this connection (non null)newEndPoint
- a new endPoint endpoint for this connection (non null)
java.lang.IllegalArgumentException
- if any of the paramers are null or newSource == newTargetpublic java.util.List getChildren()
public void setUML2Element(org.eclipse.uml2.uml.Element uml2Element)
setUML2Element
in class ModelElement
uml2Element
- the new uml2 reference for the model elementorg.jupe.editors.classdiagram.model.ModelElement#setUML2Element(org.eclipse.uml2.Element)
public ClassDiagram getClassDiagram()
getClassDiagram
in class ModelElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |