story.dbcore.admin
Class Command

java.lang.Object
  extended by story.dbcore.admin.Command
All Implemented Interfaces:
java.io.Serializable, Executable, RenderableObject

public class Command
extends java.lang.Object
implements Executable, RenderableObject, java.io.Serializable

Command class represents a single command interpretable by the db-core through DBCoreInterface.

See Also:
Serialized Form

Constructor Summary
Command(CommandType commandType)
          Constructor with no arguments.
Command(CommandType commandType, ArgumentVector args)
          Constructor with vector of arguments
Command(CommandType commandType, java.lang.Object argument0)
          Constructor with one argument.
Command(CommandType commandType, java.lang.Object argument0, java.lang.Object argument1)
          Constructor with two arguments.
Command(CommandType commandType, java.lang.Object argument0, java.lang.Object argument1, java.lang.Object argument2)
          Constructor with three arguments.
Command(CommandType commandType, java.lang.Object argument0, java.lang.Object argument1, java.lang.Object argument2, java.lang.Object argument3)
          Constructor with four arguments.
Command(CommandType commandType, java.lang.Object argument0, java.lang.Object argument1, java.lang.Object argument2, java.lang.Object argument3, java.lang.Object argument4)
          Constructor with five arguments.
 
Method Summary
 void finalize()
           
 boolean finalized()
           
 java.lang.Object getArgument(int position)
          Retrieve an argument.
 java.lang.Object[] getMutableArguments()
           
 CommandType getType()
          Retrieve the type of command.
 Command makeCopy()
           
 int numArgs()
          Retrieve the number of arguments.
 java.lang.StringBuffer render()
          Render the command as text (suitable for reinterpretation by the SCG).
 CommandType type()
          Returns the command type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command(CommandType commandType,
               ArgumentVector args)
        throws Scheherexception
Constructor with vector of arguments

Throws:
Scheherexception

Command

public Command(CommandType commandType)
Constructor with no arguments.


Command

public Command(CommandType commandType,
               java.lang.Object argument0)
Constructor with one argument.


Command

public Command(CommandType commandType,
               java.lang.Object argument0,
               java.lang.Object argument1)
Constructor with two arguments.


Command

public Command(CommandType commandType,
               java.lang.Object argument0,
               java.lang.Object argument1,
               java.lang.Object argument2)
Constructor with three arguments.


Command

public Command(CommandType commandType,
               java.lang.Object argument0,
               java.lang.Object argument1,
               java.lang.Object argument2,
               java.lang.Object argument3)
Constructor with four arguments.


Command

public Command(CommandType commandType,
               java.lang.Object argument0,
               java.lang.Object argument1,
               java.lang.Object argument2,
               java.lang.Object argument3,
               java.lang.Object argument4)
Constructor with five arguments.

Method Detail

finalize

public void finalize()
              throws Scheherexception
Specified by:
finalize in interface Executable
Overrides:
finalize in class java.lang.Object
Throws:
Scheherexception

finalized

public boolean finalized()
Specified by:
finalized in interface Executable

numArgs

public int numArgs()
Retrieve the number of arguments.


getType

public CommandType getType()
Retrieve the type of command.


getMutableArguments

public java.lang.Object[] getMutableArguments()
                                       throws Scheherexception
Throws:
Scheherexception

getArgument

public java.lang.Object getArgument(int position)
                             throws Scheherexception
Retrieve an argument.

Throws:
Scheherexception

render

public java.lang.StringBuffer render()
                              throws Scheherexception
Render the command as text (suitable for reinterpretation by the SCG).

Specified by:
render in interface Executable
Specified by:
render in interface RenderableObject
Throws:
Scheherexception

type

public CommandType type()
Returns the command type.


makeCopy

public Command makeCopy()


Copyright © 2011 David K. Elson. All Rights Reserved.