vocleditor.commands
Class CreateSetClassifierRoleCommand

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

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

Author:
tugstugi Command for creating a set classifier role.

Constructor Summary
CreateSetClassifierRoleCommand()
          The default constructor.
 
Method Summary
 void execute()
          Entry point for command execution.
 VOCLModel.NavExp getParent()
          Returns the parent nav exp.
 VOCLModel.SetClassifierRole getSetClassifierRole()
          Returns the set classifier role.
 void redo()
          Redo command execution.
 void setAttributes(java.util.List attributes)
          Sets the list of attributes.
 void setCommandAttributes(java.lang.String name, java.lang.String type, java.lang.String opKind, java.lang.String size, java.lang.String iterator, java.lang.String sum, java.util.List attributes)
          Sets the command attributes.
 void setIteratorVariable(java.lang.String iterator)
          Sets the iterator variable name.
 void setLocation(org.eclipse.draw2d.geometry.Point loc)
          Sets the location where the set classifier role located.
 void setName(java.lang.String name)
          Sets the name.
 void setOpKind(java.lang.String opKind)
          Sets the operation kind.
 void setParent(VOCLModel.NavExp newParent)
          Sets the parent nav exp.
 void setSetClassifierRole(VOCLModel.SetClassifierRole setClassifierRole)
          Sets the set classifier role.
 void setSizeVariable(java.lang.String size)
          Sets the size variable name.
 void setSumVariable(java.lang.String sum)
          Sets the sum variable name.
 void setType(java.lang.String type)
          Sets the 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

CreateSetClassifierRoleCommand

public CreateSetClassifierRoleCommand()
The default constructor.

Method Detail

execute

public void execute()
Entry point for command execution.

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

redo

public void redo()
Redo command execution.

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

undo

public void undo()
Undo command execution.

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

getParent

public VOCLModel.NavExp getParent()
Returns the parent nav exp.

Returns:
the parent nav exp

setParent

public void setParent(VOCLModel.NavExp newParent)
Sets the parent nav exp.

Parameters:
newParent - the new parent nav exp to set

getSetClassifierRole

public VOCLModel.SetClassifierRole getSetClassifierRole()
Returns the set classifier role.

Returns:
the set classifier role

setSetClassifierRole

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

Parameters:
setClassifierRole - the set classifier role to set

setLocation

public void setLocation(org.eclipse.draw2d.geometry.Point loc)
Sets the location where the set classifier role located.

Parameters:
loc - the location

setName

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

Parameters:
name - the name

setType

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

Parameters:
type - the type

setOpKind

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

Parameters:
opKind - the operation kind

setSizeVariable

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

Parameters:
size - the size variable name

setIteratorVariable

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

Parameters:
iterator - the iterator variable name

setSumVariable

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

Parameters:
sum - the sum variable name

setAttributes

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

Parameters:
attributes - the list of attributes

setCommandAttributes

public void setCommandAttributes(java.lang.String name,
                                 java.lang.String type,
                                 java.lang.String opKind,
                                 java.lang.String size,
                                 java.lang.String iterator,
                                 java.lang.String sum,
                                 java.util.List attributes)
Sets the command attributes.

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