Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.meterware.httpunit
Class FormParameter  view FormParameter download FormParameter.java

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

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.


Nested Class Summary
(package private) static class FormParameter.IllegalCheckboxParameterException
          This exception is thrown on an attempt to set a parameter to a value not permitted to it by the form.
(package private)  class FormParameter.UnusedParameterValueException
          This exception is thrown on an attempt to set a parameter to a value not permitted to it by the form.
(package private)  class FormParameter.UnusedUploadFileException
          This exception is thrown on an attempt to upload more files than permitted by the form.
 
Field Summary
private  java.util.ArrayList _controlList
           
private  FormControl[] _controls
           
private  RadioGroupFormControl _group
           
private  java.lang.String _name
           
 
Constructor Summary
(package private) FormParameter()
           
 
Method Summary
(package private)  void addControl(FormControl control)
           
private  FormControl[] getControls()
           
(package private)  int getNumTextParameters()
           
(package private)  java.lang.String[] getOptions()
           
(package private)  java.lang.String[] getOptionValues()
           
private  RadioGroupFormControl getRadioGroup(WebForm form)
           
(package private)  java.lang.Object getScriptableObject()
           
(package private)  java.lang.String[] getValues()
           
(package private)  boolean isDisabledParameter()
           
(package private)  boolean isFileParameter()
           
 boolean isHiddenParameter()
           
(package private)  boolean isMultiValuedParameter()
           
(package private)  boolean isReadOnlyParameter()
           
(package private)  boolean isTextParameter()
           
(package private)  void setFiles(UploadFileSpec[] fileArray)
           
 void setValue(boolean state)
           
 void setValue(java.lang.String value, boolean state)
           
(package private)  void setValues(java.lang.String[] values)
           
 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
 

Field Detail

_controls

private FormControl[] _controls

_controlList

private java.util.ArrayList _controlList

_group

private RadioGroupFormControl _group

_name

private java.lang.String _name
Constructor Detail

FormParameter

FormParameter()
Method Detail

addControl

void addControl(FormControl control)

getControls

private FormControl[] getControls()

getScriptableObject

java.lang.Object getScriptableObject()

getValues

java.lang.String[] getValues()

setValues

void setValues(java.lang.String[] values)

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)

setFiles

void setFiles(UploadFileSpec[] fileArray)

getOptions

java.lang.String[] getOptions()

getOptionValues

java.lang.String[] getOptionValues()

isMultiValuedParameter

boolean isMultiValuedParameter()

getNumTextParameters

int getNumTextParameters()

isTextParameter

boolean isTextParameter()

isFileParameter

boolean isFileParameter()

isDisabledParameter

boolean isDisabledParameter()

isReadOnlyParameter

boolean isReadOnlyParameter()

isHiddenParameter

public boolean isHiddenParameter()

getRadioGroup

private RadioGroupFormControl getRadioGroup(WebForm form)