story.dbcore.admin
Class CommandSequence

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

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

Encapsulates an ordered set (Vector) of Commands.

See Also:
Serialized Form

Constructor Summary
CommandSequence()
           
CommandSequence(Executable firstCommand)
           
 
Method Summary
 void add(Command command)
           
 void add(CommandSequence otherSequence)
           
 void add(Executable command)
           
 void finalize()
          Finalize this CommandSequence.
 boolean finalized()
           
 Command get(int i)
           
 void prepend(Executable other)
           
 void removeDuplicates()
          Remove any duplicate commands
 java.lang.StringBuffer render()
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandSequence

public CommandSequence()

CommandSequence

public CommandSequence(Executable firstCommand)
                throws Scheherexception
Throws:
Scheherexception
Method Detail

add

public void add(Executable command)
         throws Scheherexception
Throws:
Scheherexception

add

public void add(Command command)
         throws Scheherexception
Throws:
Scheherexception

add

public void add(CommandSequence otherSequence)
         throws Scheherexception
Throws:
Scheherexception

prepend

public void prepend(Executable other)
             throws Scheherexception
Throws:
Scheherexception

finalize

public void finalize()
              throws Scheherexception
Finalize this CommandSequence. Any further attempt to add to it will throw an exception.

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

get

public Command get(int i)

size

public int size()

render

public java.lang.StringBuffer render()
                              throws Scheherexception
Specified by:
render in interface Executable
Specified by:
render in interface RenderableObject
Throws:
Scheherexception

removeDuplicates

public void removeDuplicates()
                      throws Scheherexception
Remove any duplicate commands

Throws:
Scheherexception


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