|
||||||||||
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
org.jupe.editors.classdiagram.model.connections.DependencyElement
public class DependencyElement
A dependency relation between two 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 |
CAPTION_PROP
property ID for the caption of a dependency. |
Fields inherited from class org.jupe.editors.classdiagram.model.connections.ConnectionElement |
---|
ENDPOINT_PROP, SOURCE_PROP |
Fields inherited from class org.jupe.editors.classdiagram.model.ModelElement |
---|
GENERAL_CHANGE_PROP |
Constructor Summary | |
---|---|
DependencyElement()
Default constructor. |
|
DependencyElement(NodeModelElement source,
NodeModelElement target)
Constructor which creates the DependencyElement for the given ends. |
Method Summary | |
---|---|
java.lang.Object |
getPropertyValue(java.lang.Object propertyId)
Return the value (here caption as a String) corresponding to Property description. |
org.eclipse.uml2.uml.Element |
getUML2Element()
Sets the corresponding uml2element of this model element. |
boolean |
isPropertySet(java.lang.Object id)
Method called to check if a property is set |
void |
resetPropertyValue(java.lang.Object propertyId)
Method called to reset a property value. |
void |
setPropertyValue(java.lang.Object propertyId,
java.lang.Object value)
Method called when property is changed |
void |
setUML2Element(org.eclipse.uml2.uml.Element uml2Element)
Method used to change elements in uml2 model |
static java.lang.String |
translateCaption(int i)
There are 9 possible names for dependencies defined by the UML2 Standard. |
static int |
translateCaption(java.lang.String name)
There are 9 possible names for dependencies defined by the UML2 Standard. |
Methods inherited from class org.jupe.editors.classdiagram.model.connections.ConnectionElement |
---|
disconnect, getChildren, getClassDiagram, getEndPoint, getSource, reconnect, reconnect, setSource, setTarget |
Methods inherited from class org.jupe.editors.classdiagram.model.ModelElement |
---|
addPropertyChangeListener, getEditableValue, getPropertyDescriptors, notifyChanged, removePropertyChangeListener |
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 CAPTION_PROP
Value: String
Constructor Detail |
---|
public DependencyElement()
public DependencyElement(NodeModelElement source, NodeModelElement target)
source
- of the dependencytarget
- of the dependencyMethod Detail |
---|
public java.lang.Object getPropertyValue(java.lang.Object propertyId)
getPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
getPropertyValue
in class ModelElement
propertyId
- the description of the demanded propertyeclipse.ui.views.properties.IPropertySource#getPropertyValue(java.lang.Object)
public boolean isPropertySet(java.lang.Object id)
isPropertySet
in interface org.eclipse.ui.views.properties.IPropertySource
isPropertySet
in class ModelElement
eclipse.ui.views.properties.IPropertySource#isPropertySet(java.lang.Object)
public void resetPropertyValue(java.lang.Object propertyId)
resetPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
resetPropertyValue
in class ModelElement
IPropertySource.resetPropertyValue(java.lang.Object)
public void setPropertyValue(java.lang.Object propertyId, java.lang.Object value)
setPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
setPropertyValue
in class ModelElement
eclipse.ui.views.properties.IPropertySource#setPropertyValue(java.lang.Object,
java.lang.Object)
public void setUML2Element(org.eclipse.uml2.uml.Element uml2Element)
setUML2Element
in class ConnectionElement
uml2Element
- the new uml2 reference for the model elementorg.jupe.editors.classdiagram.model.ModelElement#setUML2Element(org.eclipse.uml2.Element)
public org.eclipse.uml2.uml.Element getUML2Element()
ModelElement
IContainerElement
s in their create..
methods. This method has to be implemented by each subclass which have
themselves to set as an adapter of the element.
getUML2Element
in class ModelElement
public static java.lang.String translateCaption(int i)
i
-
public static int translateCaption(java.lang.String name)
name
- of the dependency
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |