vocleditor.commands
Class EditSetClassifierRoleCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by vocleditor.commands.EditSetClassifierRoleCommand

public class EditSetClassifierRoleCommand
extends org.eclipse.gef.commands.Command

Author:
tugstugi Command class for edit the set classifier role properties.

Constructor Summary
EditSetClassifierRoleCommand()
          The constructor.
 
Method Summary
 void execute()
          Entry point for command execution.
 void redo()
          Redo command execution.
 void setAttributes(java.util.List attributes)
          Sets the new list of attributes.
 void setChangedVariables(java.util.Hashtable changedVariables)
          Sets the the hashtable of changed variables.
 void setClassifierRole(VOCLModel.SetClassifierRole setClassifierRole)
          Sets the set classifier role.
 void setCommandAttributes(java.lang.String name, java.lang.String type, java.lang.String opKind, java.lang.String sizeName, java.lang.String iteratorName, java.lang.String sumName, java.util.Hashtable changedVariables, java.util.List attributes)
          Sets the command attributes.
 void setIteratorVariableName(java.lang.String iterator)
          Sets the name of the iterator variable.
 void setName(java.lang.String name)
          Sets the new name.
 void setOpKind(java.lang.String opKind)
          Sets the new operation kind.
 void setSizeVariableName(java.lang.String size)
          Sets the name of the size variable.
 void setSumVariableName(java.lang.String sum)
          Sets the name of the sum variable.
 void setType(java.lang.String type)
          Sets the new type.
 void undo()
          Undo command execution.
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditSetClassifierRoleCommand

public EditSetClassifierRoleCommand()
The constructor.

Method Detail

setClassifierRole

public void setClassifierRole(VOCLModel.SetClassifierRole setClassifierRole)
Sets the set classifier role.

Parameters:
setClassifierRole - the set classifier role to set.

execute

public void execute()
Entry point for command execution.

Overrides:
execute in class org.eclipse.gef.commands.Command

undo

public void undo()
Undo command execution.

Overrides:
undo in class org.eclipse.gef.commands.Command

redo

public void redo()
Redo command execution.

Overrides:
redo in class org.eclipse.gef.commands.Command

setName

public void setName(java.lang.String name)
Sets the new name.

Parameters:
name - the new name

setType

public void setType(java.lang.String type)
Sets the new type.

Parameters:
type - value the new type

setOpKind

public void setOpKind(java.lang.String opKind)
Sets the new operation kind.

Parameters:
opKind - the new operation kind

setSizeVariableName

public void setSizeVariableName(java.lang.String size)
Sets the name of the size variable.

Parameters:
size - the size variable name

setIteratorVariableName

public void setIteratorVariableName(java.lang.String iterator)
Sets the name of the iterator variable.

Parameters:
iterator - the iterator variable name

setSumVariableName

public void setSumVariableName(java.lang.String sum)
Sets the name of the sum variable.

Parameters:
sum - the sum variable name

setChangedVariables

public void setChangedVariables(java.util.Hashtable changedVariables)
Sets the the hashtable of changed variables.

Parameters:
changedVariables - the hashtable of changed variables.

setAttributes

public void setAttributes(java.util.List attributes)
Sets the new list of attributes.

Parameters:
attributes - the new list of attributes

setCommandAttributes

public void setCommandAttributes(java.lang.String name,
                                 java.lang.String type,
                                 java.lang.String opKind,
                                 java.lang.String sizeName,
                                 java.lang.String iteratorName,
                                 java.lang.String sumName,
                                 java.util.Hashtable changedVariables,
                                 java.util.List attributes)
Sets the command attributes.

Parameters:
name - the new name
type - the new type
opKind - the new operation kind
attributes - the new list of attributes