com.meterware.httpunit
Class FormParameter

java.lang.Object
  extended bycom.meterware.httpunit.FormParameter

public class FormParameter
extends java.lang.Object

Represents the aggregate of all form controls with a particular name. This permits us to abstract setting values so that changing a control type does not break a test.

Author:
Russell Gold

Nested Class Summary
 class FormParameter.UnusedParameterValueException
          This exception is thrown on an attempt to set a parameter to a value not permitted to it by the form.
 
Constructor Summary
FormParameter()
           
 
Method Summary
 FormControl getControl()
          get the control for this form Parameter (assuming it has only one as for a text control
 FormControl[] getControls()
          get the controls for this form Parameter
 boolean isHiddenParameter()
           
 void setValue(boolean state)
           
 void setValue(java.lang.String value, boolean state)
           
 void toggleCheckbox()
           
 void toggleCheckbox(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormParameter

public FormParameter()
Method Detail

getControls

public FormControl[] getControls()
get the controls for this form Parameter

Returns:
the controls

getControl

public FormControl getControl()
get the control for this form Parameter (assuming it has only one as for a text control

Returns:
the controls

toggleCheckbox

public void toggleCheckbox()

toggleCheckbox

public void toggleCheckbox(java.lang.String value)

setValue

public void setValue(boolean state)

setValue

public void setValue(java.lang.String value,
                     boolean state)

isHiddenParameter

public boolean isHiddenParameter()

Copyright © 2000-2008 Russell Gold. See license agreement for rights granted.