|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch3.defaultValidate.RequestDataDefault
public class RequestDataDefault
The bean that implements default validation.
The accessors will perform default validation. If the value that is entered by the user does not pass a validation test, then a default value will be supplied.
| Field Summary | |
|---|---|
protected java.lang.String |
aversion
The variable to store the aversion. |
protected java.lang.String |
hobby
The variable to store the hobby. |
| Constructor Summary | |
|---|---|
RequestDataDefault()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAversion()
The accessor for the aversion property. |
java.lang.String |
getHobby()
The accessor for the hobby property. |
boolean |
isValidAversion()
A helper method to test if the aversion is valid. |
boolean |
isValidHobby()
A helper method to test if the hobby is valid. |
void |
setAversion(java.lang.String aversion)
The mutator for the aversion property. |
void |
setHobby(java.lang.String hobby)
The mutator for the hobby property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String hobby
The variable is hidden from other classes, so it doesn't matter what name it has.
protected java.lang.String aversion
The variable is hidden from other classes, so it doesn't matter what name it has.
| Constructor Detail |
|---|
public RequestDataDefault()
| Method Detail |
|---|
public void setHobby(java.lang.String hobby)
This name must agree with the name of the input element from the HTML page where the user enters data.
The name of the input element should be hobby.
hobby - The hobby from the request datapublic java.lang.String getHobby()
This name must agree with the name of the input element from the HTML page where the user enters data.
The name of the input element should be hobby.
public void setAversion(java.lang.String aversion)
This name must agree with the name of the input element from the HTML page where the user enters data.
The name of the input element should be aversion.
aversion - The aversion from the request datapublic java.lang.String getAversion()
This name must agree with the name of the input element from the HTML page where the user enters data.
The name of the input element should be aversion.
public boolean isValidHobby()
public boolean isValidAversion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||