?? ordervalidatorform.java
字號:
package com.netshop.web.struts.form;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.apache.struts.validator.ValidatorForm;
public class OrderValidatorForm extends ValidatorForm implements Serializable {
private String firstName = null;
private String lastName = null;
private String address1 = null;
private String address2 = null;
private CityStateZip csz = new CityStateZip();
private String creditCard = null;
private String country = null;
private String shippingAddressRequired = null;
private String cardType = null;
public List getCreditCardTypes() {
return cardTypeList;
}
/**
* @return Returns the cardType.
*/
public String getCardType() {
return cardType;
}
/**
* @param cardType
* The cardType to set.
*/
public void setCardType(String cardType) {
this.cardType = cardType;
}
/**
* @return Returns the cardTypeList.
*/
public List getCardTypeList() {
return cardTypeList;
}
/**
* @param cardTypeList
* The cardTypeList to set.
*/
public void setCardTypeList(List cardTypeList) {
this.cardTypeList = cardTypeList;
}
/**
* @return Returns the shippingAddressRequired.
*/
public String getShippingAddressRequired() {
return shippingAddressRequired;
}
/**
* @param shippingAddressRequired
* The shippingAddressRequired to set.
*/
public void setShippingAddressRequired(String shippingAddressRequired) {
this.shippingAddressRequired = shippingAddressRequired;
}
/* Constants */
private static final List CARD_TYPE_LIST = new ArrayList();
private List cardTypeList = CARD_TYPE_LIST;
/* Static Initializer */
static {
CARD_TYPE_LIST.add("Visa");
CARD_TYPE_LIST.add("MasterCard");
}
public OrderValidatorForm() {
}
/**
* @return Returns the address1.
*/
public String getAddress1() {
return address1;
}
/**
* @param address1
* The address1 to set.
*/
public void setAddress1(String address1) {
this.address1 = address1;
}
/**
* @return Returns the address2.
*/
public String getAddress2() {
return address2;
}
/**
* @param address2
* The address2 to set.
*/
public void setAddress2(String address2) {
this.address2 = address2;
}
/**
* @return Returns the country.
*/
public String getCountry() {
return country;
}
/**
* @param country
* The country to set.
*/
public void setCountry(String country) {
this.country = country;
}
/**
* @return Returns the creditCard.
*/
public String getCreditCard() {
return creditCard;
}
/**
* @param creditCard
* The creditCard to set.
*/
public void setCreditCard(String creditCard) {
this.creditCard = creditCard;
}
/**
* @return Returns the csz.
*/
public CityStateZip getCsz() {
return csz;
}
/**
* @param csz
* The csz to set.
*/
public void setCsz(CityStateZip csz) {
this.csz = csz;
}
/**
* @return Returns the expiryDate.
*/
public String getExpiryDate() {
return expiryDate;
}
/**
* @param expiryDate
* The expiryDate to set.
*/
public void setExpiryDate(String expiryDate) {
this.expiryDate = expiryDate;
}
/**
* @return Returns the firstName.
*/
public String getFirstName() {
return firstName;
}
/**
* @param firstName
* The firstName to set.
*/
public void setFirstName(String firstName) {
this.firstName = firstName;
}
/**
* @return Returns the lastName.
*/
public String getLastName() {
return lastName;
}
/**
* @param lastName
* The lastName to set.
*/
public void setLastName(String lastName) {
this.lastName = lastName;
}
private String expiryDate = null;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -