clarion.options
Class OptionItem

java.lang.Object
  extended byclarion.options.OptionItem
All Implemented Interfaces:
java.lang.Cloneable

public class OptionItem
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
protected  int curParamNum
          current number of parameters in this item.
protected  java.lang.String label
          the label of this item.
protected  Parameter[] params
          the parameter array.
 
Constructor Summary
OptionItem(java.lang.String label, int num, Parameter[] params)
          constructor.
OptionItem(java.lang.String label, Parameter[] params)
          constructor.
 
Method Summary
 java.lang.Object clone()
          methods from class Object
 int getCount()
          Returns the number of parameters.
 java.lang.String getLabel()
          Returns the item label.
 Parameter getParameter(int idx)
          Returns a specific parameter.
 Parameter[] getParameters()
          Returns parameters.
 boolean hasParameters()
          Returns if this item has parameter or not.
 void setCount(int num)
          Sets the number of parameters.
 java.lang.String toString()
          methods from class Object
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

label

protected java.lang.String label
the label of this item.


curParamNum

protected int curParamNum
current number of parameters in this item.


params

protected Parameter[] params
the parameter array.

Constructor Detail

OptionItem

public OptionItem(java.lang.String label,
                  Parameter[] params)
constructor.

Parameters:
label - the item label.
params - the parameter array of this item.

OptionItem

public OptionItem(java.lang.String label,
                  int num,
                  Parameter[] params)
constructor.

Parameters:
label - the item label.
num - the number of parameters.
params - the parameter array of this item.
Method Detail

getLabel

public java.lang.String getLabel()
Returns the item label.

Returns:
the item label.

getCount

public int getCount()
Returns the number of parameters.

Returns:
the number of parameters.

getParameters

public Parameter[] getParameters()
Returns parameters.

Returns:
parameters.

getParameter

public Parameter getParameter(int idx)
Returns a specific parameter.

Parameters:
idx - the index to the specific parameter.
Returns:
the specific parameter.

hasParameters

public boolean hasParameters()
Returns if this item has parameter or not.


setCount

public void setCount(int num)
Sets the number of parameters.

Parameters:
num - the number to set.

toString

public java.lang.String toString()
methods from class Object


clone

public java.lang.Object clone()
methods from class Object