|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.utexas.its.eis.tools.qwicap.servlet.FormControlValue
public class FormControlValue
Represents the control-name/current-value(s) pair for one or more successful controls of the same name in an XHTML form.
Method Summary | |
---|---|
int |
compareTo(FormControlValue Other)
Compares the name of this form control with the name of another form control, specified as a FormControlValue object. |
boolean |
equals(Object Other)
Tests the name and value(s) of this form control for equality with the name and value(s) of another FormControlValue object. |
String |
getName()
Returns the name of the control that supplied this value, or values. |
String |
getValue()
Returns the first value in the relevant form data set that was supplied by this control, or controls. |
String[] |
getValues()
Returns all of the values in the relevant form data set that were supplied by this control, or controls. |
int |
hashCode()
|
boolean |
isQwicapControl()
Returns true if the control that supplied this value, or values, is owned by Qwicap and therefore
reserved for its internal use, or false if the control was a normal part of the form. |
boolean |
isQwicapParameter()
Deprecated. Use isQwicapControl() instead. |
Iterator<String> |
iterator()
Returns an Iterator of the values in the relevant form data set that were supplied by this control,
or controls. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int hashCode()
hashCode
in class Object
public boolean equals(Object Other)
FormControlValue
object. The order of the values in each object will not affect the outcome of this
comparison.
equals
in class Object
Other
- Another object, or null
.
true
if the other object is an instance of FormControlValue
,
and its name and value(s) match the name of value(s) of this
FormControlValue
instance, false
otherwise.public int compareTo(FormControlValue Other)
FormControlValue
object.
compareTo
in interface Comparable<FormControlValue>
Other
- A FormControlValue
object whose name should be compared to the name of
this FormControlValue
object.
public final String getName()
public String getValue()
getValues()
when dealing
such controls.
getValues()
public String[] getValues()
String
array. For efficiency, the array
returned is this object's own master copy, and its contents should not be modified.public Iterator<String> iterator()
Iterator
of the values in the relevant form data set that were supplied by this control,
or controls. Multiple values are supplied by controls like checkboxes, or by any set of simultaneously successful
controls of the same name.
iterator
in interface Iterable<String>
Iterator
of the strings representing the values of this control.public boolean isQwicapParameter()
isQwicapControl()
instead.
true
if the control that supplied this value, or values, is owned by Qwicap and therefore
reserved for its internal use, or false
if the control was a normal part of the form. To explain:
Qwicap automatically adds hidden "input" controls to all forms for its internal use. The names of those controls
are prefixed with the string "qwicap-" in order to avoid collisions with the names of the controls placed in the
form by the web developer. This method makes it easy to distinguish between the values supplied by Qwicap's hidden
controls, and the web application's own controls.
true
if the control that supplied this value, or values, is owned by Qwicap, and
false
if the control was a normal part of the form.public boolean isQwicapControl()
true
if the control that supplied this value, or values, is owned by Qwicap and therefore
reserved for its internal use, or false
if the control was a normal part of the form. To explain:
Qwicap automatically adds hidden "input" controls to all forms for its internal use. The names of those controls
are prefixed with the string "qwicap-" in order to avoid collisions with the names of the controls placed in the
form by the web developer. This method makes it easy to distinguish between the values supplied by Qwicap's hidden
controls, and the web application's own controls.
true
if the control that supplied this value, or values, is owned by Qwicap, and
false
if the control was a normal part of the form.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |