|
||||||||||
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.RelationElement
public class RelationElement
Model element that represents an association, an aggregation or a composition. Since all three use the same UML2 element and have almost the same properties, there is only one class to represent them.
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
PropertyID for the caption. |
static java.lang.String |
DIRECTED_PROP
PropertyId for the direction. |
static java.lang.String |
ENDATTRIBUTENAME_PROP
PropertyID for the name used by the property at the start of the assocication to name the end. |
static java.lang.String |
ENDDESC_PROP
PropertyID for the description corresponding to end multiplicity. |
static java.lang.String |
ENDMULT_PROP
PropertyId for the multiplicity at the end of a relation. |
static java.lang.String |
STARTATTRIBUTENAME_PROP
PropertyID for the name used by the property at the end of the association to name the start. |
static java.lang.String |
STARTDESC_PROP
PropertyID for the description corresponding to start multiplicity. |
static java.lang.String |
STARTMULT_PROP
PropertyId for the multiplicity at the start of a relation. |
static java.lang.String |
TYPE_PROP
PropertyId for the type of association: association, aggregation or composition. |
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 | |
---|---|
RelationElement()
Default constructor. |
|
RelationElement(NodeModelElement source,
NodeModelElement target)
Constructor which creates a relation with the given ends. |
Method Summary | |
---|---|
java.lang.Object |
getPropertyValue(java.lang.Object propertyId)
Children should override this. |
org.eclipse.uml2.uml.Element |
getUML2Element()
Sets the corresponding uml2element of this model element. |
boolean |
isPropertySet(java.lang.Object id)
Children should override this. |
void |
resetPropertyValue(java.lang.Object propertyId)
Children should override this. |
void |
setPropertyValue(java.lang.Object propertyId,
java.lang.Object value)
Children should override this. |
void |
setUML2Element(org.eclipse.uml2.uml.Element uml2Element)
(non-Javadoc) |
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
public static final java.lang.String DIRECTED_PROP
Value: boolean
public static final java.lang.String ENDMULT_PROP
Value: String that is validated by the
MultiplicityValidator
.
public static final java.lang.String ENDDESC_PROP
Value: String
public static final java.lang.String STARTMULT_PROP
Value: String that is validated by the
MultiplicityValidator
.
public static final java.lang.String STARTDESC_PROP
Value: String
public static final java.lang.String STARTATTRIBUTENAME_PROP
Value: String
public static final java.lang.String ENDATTRIBUTENAME_PROP
Value: String
public static final java.lang.String TYPE_PROP
Value: String
Constructor Detail |
---|
public RelationElement()
public RelationElement(NodeModelElement source, NodeModelElement target)
source
- of the relationtarget
- of the relationMethod Detail |
---|
public java.lang.Object getPropertyValue(java.lang.Object propertyId)
ModelElement
getPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
getPropertyValue
in class ModelElement
eclipse.ui.views.properties.IPropertySource#getPropertyValue(java.lang.Object)
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 boolean isPropertySet(java.lang.Object id)
ModelElement
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)
ModelElement
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)
ModelElement
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)
ConnectionElement
setUML2Element
in class ConnectionElement
uml2Element
- the new uml2 reference for the model elementorg.jupe.editors.classdiagram.model.ModelElement#setUML2Element(org.eclipse.uml2.Element)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |