de.frag.umlplugin.uml.command
Class AbstractDiagramCommand

java.lang.Object
  extended by de.frag.umlplugin.uml.command.AbstractDiagramCommand
All Implemented Interfaces:
DiagramCommand
Direct Known Subclasses:
AbstractAddDependentClassesCommand, AbstractConnectCommand, AddClassCommand, RemoveAllCreateEdgesCommand, RemoveAllUsageEdgesCommand, RemoveClassCommand, RemoveEdgeCommand

public abstract class AbstractDiagramCommand
extends java.lang.Object
implements DiagramCommand

Abstract base class for diagram commands.


Field Summary
static java.lang.String COMMAND_CLASS
           
static java.lang.String COMMAND_ELEMENT_NAME
           
static java.lang.String PSI_CLASS
           
static java.lang.String SOURCE_CLASS
           
static java.lang.String TARGET_CLASS
           
static java.lang.String USAGE_TYPE
           
 
Constructor Summary
AbstractDiagramCommand()
           
 
Method Summary
protected  void addAdditionalInfo(org.jdom.Element commandElement)
          Adds additional information (attributes or child elements) to given element.
 org.jdom.Element createElement()
          Creates an element for this command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.frag.umlplugin.uml.command.DiagramCommand
canExecute, execute, renameClasses
 

Field Detail

COMMAND_ELEMENT_NAME

public static final java.lang.String COMMAND_ELEMENT_NAME
See Also:
Constant Field Values

COMMAND_CLASS

public static final java.lang.String COMMAND_CLASS
See Also:
Constant Field Values

PSI_CLASS

public static final java.lang.String PSI_CLASS
See Also:
Constant Field Values

SOURCE_CLASS

public static final java.lang.String SOURCE_CLASS
See Also:
Constant Field Values

TARGET_CLASS

public static final java.lang.String TARGET_CLASS
See Also:
Constant Field Values

USAGE_TYPE

public static final java.lang.String USAGE_TYPE
See Also:
Constant Field Values
Constructor Detail

AbstractDiagramCommand

public AbstractDiagramCommand()
Method Detail

createElement

@NotNull
public org.jdom.Element createElement()
Creates an element for this command. Sub classes can add additional information by overriding method addAdditionalInfo(org.jdom.Element).

Specified by:
createElement in interface DiagramCommand
Returns:
created element

addAdditionalInfo

protected void addAdditionalInfo(@NotNull
                                 org.jdom.Element commandElement)
Adds additional information (attributes or child elements) to given element.

Parameters:
commandElement - command element to add additional information to