net.sf.jameleon.plugin.httpunit
Class HttpUnitTableParamTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by net.sf.jameleon.ParamTag
          extended by net.sf.jameleon.plugin.httpunit.HttpUnitTableParamTag
All Implemented Interfaces:
Tag

public class HttpUnitTableParamTag
extends ParamTag

An extension of the ParamTag specific to the HttpUnit plug-in.

Tag Name: <hu-table-param>

Field Summary
protected  int colValue
          The col position of the value
protected  int rowValue
          The row position of the value
protected  String tableIdentifier
          The table identifier (id or name)
protected  String tableIndex
          The table index (seperated by ->) ex: 1->(2,9)1.
 
Fields inherited from class net.sf.jameleon.ParamTag
fromVariable, name, paramType, values
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
HttpUnitTableParamTag()
           
 
Method Summary
 int getColValue()
           
 int getRowValue()
           
 String getTableIdentifier()
           
 String getTableIndex()
           
 void setColValue(int aVal)
          Sets the column number of the table
 void setRowValue(int aVal)
          Sets the row number of the table
 void setTableIdentifier(String aVal)
          Sets the name of id of the table.
 void setTableIndex(String aVal)
          Sets the location of the table.
protected  void validate()
          Validates everything is set up correctly.
 
Methods inherited from class net.sf.jameleon.ParamTag
addParamValue, doTag, getFromVariable, getName, getParamName, getParamType, getParamValues, getValue, setFromVariable, setParamName, setParamType, setParamValue
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableIdentifier

protected String tableIdentifier
The table identifier (id or name)


tableIndex

protected String tableIndex
The table index (seperated by ->) ex: 1->(2,9)1. This means the first table, second column, nineth row and the first table inside there. another example would be 1->(2,9)1->(3,4)3. This means the first table, second column, nineth row and the first table inside there with the 3rd column, 4th row and 3rd table inside that.


rowValue

protected int rowValue
The row position of the value


colValue

protected int colValue
The col position of the value

Constructor Detail

HttpUnitTableParamTag

public HttpUnitTableParamTag()
Method Detail

getTableIdentifier

public String getTableIdentifier()
Returns:
The table id or name

getTableIndex

public String getTableIndex()
Returns:
the location of the table. ex 1->(2,9)1

setTableIdentifier

public void setTableIdentifier(String aVal)
Sets the name of id of the table.


setTableIndex

public void setTableIndex(String aVal)
Sets the location of the table. ex 1->(2,9)1


getRowValue

public int getRowValue()
Returns:
the row number of the table

getColValue

public int getColValue()
Returns:
the column number of the table

setRowValue

public void setRowValue(int aVal)
Sets the row number of the table


setColValue

public void setColValue(int aVal)
Sets the column number of the table


validate

protected void validate()
                 throws JellyTagException
Validates everything is set up correctly.

Overrides:
validate in class ParamTag
Throws:
MissingAttributeException - - When a required attribute isn't set.
JellyTagException - - When this tag is used out of context.


Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.