story.dbcore.admin
Class CommandSequence
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandSequence
public CommandSequence()
CommandSequence
public CommandSequence(Executable firstCommand)
throws Scheherexception
- Throws:
Scheherexception
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.