|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.opmath.test.dmldoc.Address
The form object for the address form. This class provides a server-side represenation of the address form, as completed by each user. 'Form Object' is a prototypical pattern.
Copyright: (c) 2002 The Open Math Company Limited
The Terms of Distribution of this software are stipulated in the javadoc Overview for this project.
| Constructor Summary | |
Address(HttpServletRequest req)
Constructs a new address form object for a given HTTP request. |
|
| Method Summary | |
String |
getAddr1()
Returns the address line 1 field ('addr1') for the address form. |
String |
getAddr2()
Returns the address line 2 field ('addr2') for the address form. |
String |
getCountry()
Returns the post country field ('country') for the address form. |
String |
getFamily()
Returns the family name field ('family') for the address form. |
String |
getFunc()
Returns the address use field ('func') for the address form. |
String |
getGiven()
Returns the given name field ('given') for the address form. |
String |
getPostcode()
Returns the post code / ZIP field ('postcode') for the address form. |
String |
getRegion()
Returns the region field ('region') for the address form. |
String |
getSal()
Returns the salutation field ('sal') for the address form. |
String |
getTown()
Returns the town field ('town') for the address form. |
boolean |
isValid()
Returns true iff all of the obligatory fields of the form contain some text. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public Address(HttpServletRequest req)
Constructs a new address form object for a given HTTP request. This address form object allows read access to all fields, and indicates the validity of the form data.
req - a com.opmath.util.http.HttpServletRequest
containing the field name / value pairs.| Method Detail |
public String getSal()
Returns the salutation field ('sal') for the address form. If the field was not
supplied, or had no value, then the empty String "" is returned.
This is not treated as an obligatory field.
String containing the value of the 'sal' field value.public String getGiven()
Returns the given name field ('given') for the address form. If the field was not
supplied, or had no value, then the empty String "" is returned.
This is treated as an obligatory field.
String containing the value of the 'given' field value.public String getFamily()
Returns the family name field ('family') for the address form. If the field was not
supplied, or had no value, then the empty String "" is returned.
This is treated as an obligatory field.
String containing the value of the 'family' field value.public String getAddr1()
Returns the address line 1 field ('addr1') for the address form. If the field was not
supplied, or had no value, then the empty String "" is returned.
This is treated as an obligatory field.
String containing the value of the 'addr1' field value.public String getAddr2()
Returns the address line 2 field ('addr2') for the address form. If the field was not
supplied, or had no value, then the empty String "" is returned.
This is not treated as an obligatory field.
String containing the value of the 'addr2' field value.public String getTown()
Returns the town field ('town') for the address form. If the field was not
supplied, or had no value, then the empty String "" is returned.
This is treated as an obligatory field.
String containing the value of the 'town' field value.public String getRegion()
Returns the region field ('region') for the address form. If the field was not
supplied, or had no value, then the empty String "" is returned.
This is treated as an obligatory field.
String containing the value of the 'region' field value.public String getPostcode()
Returns the post code / ZIP field ('postcode') for the address form. If the field was not
supplied, or had no value, then the empty String "" is returned.
This is treated as an obligatory field.
String containing the value of the 'postcode' field value.public String getCountry()
Returns the post country field ('country') for the address form. If the field was not
supplied, or had no value, then the empty String "" is returned.
This is treated as an obligatory field.
String containing the value of the 'country' field value.public String getFunc()
Returns the address use field ('func') for the address form. If the field was not
supplied, or had no value, then the empty String "" is returned.
This is treated as an obligatory field.
String containing the value of the 'func' field value.public boolean isValid()
Returns true iff all of the obligatory fields of the form contain some text.
boolean indicating the validity of the form.
|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||