|
||||||||||
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.AbstractClassInterfaceElement
public abstract class AbstractClassInterfaceElement
Helper class that contains equal code for
ClassElement
and
InterfaceElement
.
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 |
ATTRIBUTES_PROP
PropertyID for attributes of a class interface. |
static java.lang.String |
METHODS_PROP
PropertyID for methods of a class or interface. |
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 | |
---|---|
AbstractClassInterfaceElement()
Default constructor of a new ClassInterfaceElement. |
Method Summary | |
---|---|
boolean |
assimilate(NodeModelElement modelElement)
Creates a UML2 element to a given NodeModelElement. |
AttributeElement |
findAttribute(java.lang.String name)
Searches for an antribute with the given name. |
MethodElement |
findMethod(java.lang.String name)
Searches for a method with the given name. |
java.util.Set<AttributeElement> |
getAttributes()
Get all attributes of a class or interface. |
java.util.Set<MethodElement> |
getMethods()
Get all methods of a class or interface. |
java.lang.Object |
getPropertyValue(java.lang.Object propertyId)
Children should override this. |
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. |
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, getUML2Element, removePropertyChangeListener, setUML2Element |
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 METHODS_PROP
Value: MethodElement
public static final java.lang.String ATTRIBUTES_PROP
Value: AttributeElement
Constructor Detail |
---|
public AbstractClassInterfaceElement()
Method Detail |
---|
public java.util.Set<AttributeElement> getAttributes()
public java.util.Set<MethodElement> getMethods()
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)
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 boolean assimilate(NodeModelElement modelElement)
assimilate
in interface IContainerElement
modelElement
- The model element to assimilate to this container.
IContainerElement.assimilate(NodeModelElement)
public AttributeElement findAttribute(java.lang.String name)
name
- the attribute's name
public MethodElement findMethod(java.lang.String name)
name
- the method's name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |