story.dbcore.parameters
Class ArgumentVector

java.lang.Object
  extended by story.dbcore.parameters.ArgumentVector
All Implemented Interfaces:
RenderableObject

public class ArgumentVector
extends java.lang.Object
implements RenderableObject

A vector of objects that are to be interpeted as arguments by a ParameterSet


Constructor Summary
ArgumentVector()
          Constructor with no arguments.
ArgumentVector(java.lang.Object argument0)
          Constructor with one argument.
ArgumentVector(java.lang.Object argument0, java.lang.Object argument1)
          Constructor with two arguments.
ArgumentVector(java.lang.Object argument0, java.lang.Object argument1, java.lang.Object argument2)
          Constructor with three arguments.
ArgumentVector(java.lang.Object argument0, java.lang.Object argument1, java.lang.Object argument2, java.lang.Object argument3)
          Constructor with four arguments.
 
Method Summary
 void addArg(java.lang.Object object)
           
 java.util.Enumeration elements()
          Returns an enumeration of the elements in the ArgumentVector.
 java.lang.Object get(int index)
          Returns a particular argument.
 java.util.Vector getVectorCopy()
          Get a copy of the elements in the ArgumentVector as a Vector.
 ArgumentVector intern()
           
 ArgumentVector makeCopy()
          Make a shallow copy of the ArgumentVector.
 void remove(int index)
          Remove an argument.
 java.lang.StringBuffer render()
          Render the argument vector to a StringBuffer.
 void replaceArg(int index, java.lang.Object argument)
          Replace an argument.
 int size()
          Return the number of arguments in the ArgumentVector.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgumentVector

public ArgumentVector()
Constructor with no arguments.


ArgumentVector

public ArgumentVector(java.lang.Object argument0)
               throws Scheherexception
Constructor with one argument.

Throws:
Scheherexception

ArgumentVector

public ArgumentVector(java.lang.Object argument0,
                      java.lang.Object argument1)
               throws Scheherexception
Constructor with two arguments.

Throws:
Scheherexception

ArgumentVector

public ArgumentVector(java.lang.Object argument0,
                      java.lang.Object argument1,
                      java.lang.Object argument2)
               throws Scheherexception
Constructor with three arguments.

Throws:
Scheherexception

ArgumentVector

public ArgumentVector(java.lang.Object argument0,
                      java.lang.Object argument1,
                      java.lang.Object argument2,
                      java.lang.Object argument3)
               throws Scheherexception
Constructor with four arguments.

Throws:
Scheherexception
Method Detail

addArg

public void addArg(java.lang.Object object)
            throws Scheherexception
Throws:
Scheherexception

size

public int size()
Return the number of arguments in the ArgumentVector.


elements

public java.util.Enumeration elements()
Returns an enumeration of the elements in the ArgumentVector.


getVectorCopy

public java.util.Vector getVectorCopy()
Get a copy of the elements in the ArgumentVector as a Vector.


makeCopy

public ArgumentVector makeCopy()
Make a shallow copy of the ArgumentVector.


get

public java.lang.Object get(int index)
                     throws Scheherexception
Returns a particular argument.

Throws:
Scheherexception

remove

public void remove(int index)
            throws Scheherexception
Remove an argument.

Throws:
Scheherexception

replaceArg

public void replaceArg(int index,
                       java.lang.Object argument)
                throws Scheherexception
Replace an argument.

Throws:
Scheherexception

render

public java.lang.StringBuffer render()
                              throws Scheherexception
Render the argument vector to a StringBuffer.

Specified by:
render in interface RenderableObject
Throws:
Scheherexception

intern

public ArgumentVector intern()
                      throws Scheherexception
Throws:
Scheherexception


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