|
||||||||||
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.nodes.NodeModelElement
org.jupe.editors.classdiagram.model.nodes.AttributeElement
public class AttributeElement
Model element that represents an attribute of a class or interface.
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 |
ABS_TYPE_NAME_PROP
PropertyId for type of the attribute (int, java.lang.String, etc). |
static java.lang.String |
DERIVED_PROP
PropertyId for the derived property. |
static java.lang.String |
DERIVED_UNION_PROP
PropertyId for the derived union property. |
static java.lang.String |
INITIAL_VALUE_PROP
PropertyId for initial or default value of an attribute. |
static java.lang.String |
MULTIPLICITY_PROP
PropertyId for multiplicity of an attribute. |
static java.lang.String |
NAME_PROP
PropertyId for name of the attribute. |
static java.lang.String |
ORDERED_PROP
PropertyId for the ordered property. |
static java.lang.String |
READONLY_PROP
PropertyId for the read only property. |
static java.lang.String |
STATIC_PROP
PropertyId for the static flag of an attribute. |
static java.lang.String |
VISIBILITY_PROP
PropertyId for visibility of attribute : public, protected, private. |
Fields inherited from class org.jupe.editors.classdiagram.model.nodes.NodeModelElement |
---|
CHILD_ADDED_PROP, CHILD_REMOVED_PROP, CONNECTIONS_PROP, LOCATION_PROP, SIZE_PROP, SOURCE_CONNECTIONS_PROP, TARGET_CONNECTIONS_PROP |
Fields inherited from class org.jupe.editors.classdiagram.model.ModelElement |
---|
GENERAL_CHANGE_PROP |
Constructor Summary | |
---|---|
AttributeElement()
Default constructor. |
|
AttributeElement(org.eclipse.uml2.uml.Property uml2Element)
Constructor which creates the AttributeElement with the corresponding UML2 element. |
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 propertyId)
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)
Children should override this method, call super.setUML2Element(uml2Element) and then update their UML2Element accordingly. |
Methods inherited from class org.jupe.editors.classdiagram.model.nodes.NodeModelElement |
---|
addChild, addConnection, addToHash, getAllChildren, getChildren, getClassDiagram, getLocation, getParent, getSize, getSourceConnections, getTargetConnections, notifyChanged, removeChild, removeConnection, removeFromHash, removeFromModel, setLocation, setSize, setSourceConnections, setTargetConnections |
Methods inherited from class org.jupe.editors.classdiagram.model.ModelElement |
---|
addPropertyChangeListener, getEditableValue, getPropertyDescriptors, 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 NAME_PROP
Value: String
public static final java.lang.String ABS_TYPE_NAME_PROP
Value: String
public static final java.lang.String VISIBILITY_PROP
Value: VisibilityKind
public static final java.lang.String STATIC_PROP
Value: Boolean
public static final java.lang.String INITIAL_VALUE_PROP
Value: String
public static final java.lang.String MULTIPLICITY_PROP
Value: String that is validated by the
MultiplicityValidator
.
public static final java.lang.String DERIVED_PROP
Value: Integer
public static final java.lang.String DERIVED_UNION_PROP
Value: Integer
public static final java.lang.String READONLY_PROP
Value: Integer
public static final java.lang.String ORDERED_PROP
Value: Integer
Constructor Detail |
---|
public AttributeElement()
public AttributeElement(org.eclipse.uml2.uml.Property uml2Element)
uml2Element
- the corresponding UML2 elementMethod Detail |
---|
public void setUML2Element(org.eclipse.uml2.uml.Element uml2Element)
ModelElement
setUML2Element
in class ModelElement
uml2Element
- the new uml2 reference for the model elementpublic 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 void setPropertyValue(java.lang.Object propertyId, java.lang.Object value)
ModelElement
setPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
setPropertyValue
in class NodeModelElement
eclipse.ui.views.properties.IPropertySource#setPropertyValue(java.lang.Object,
java.lang.Object)
public java.lang.Object getPropertyValue(java.lang.Object propertyId)
ModelElement
getPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
getPropertyValue
in class NodeModelElement
eclipse.ui.views.properties.IPropertySource#getPropertyValue(java.lang.Object)
public boolean isPropertySet(java.lang.Object propertyId)
ModelElement
isPropertySet
in interface org.eclipse.ui.views.properties.IPropertySource
isPropertySet
in class NodeModelElement
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 NodeModelElement
IPropertySource.resetPropertyValue(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |