Электронный магазин на Java и XML



              

Листинг 5.1. Класс Customerlnfo (Customerlnfo.java)



Листинг 5.1. Класс Customerlnfo (Customerlnfo.java)

package com.XmlEcomBook.Chap05; public class CustomerInfo { private String lastName; private String firstName; private String address1; private String address2; private String city; private String state; private String zip; private String email; private String phoneNumber; private CreditInfo creditInfo; public CustomerInfo() { } public String getLastName() { return lastName; } public void setLastName( String newLastName ) { lastName = newLastName; } public String getFirstName() { return firstName; } public void setFirstName( String newFirstName ) { firstName = newFirstName; } public void setAddress1( String newAddress1 ) { address1 = newAddress1; } public String getAddress1() { return address1; } public void setAddress2( String newAddress2 ) { address2 = newAddress2; } public String getAddress2() { return address2; } public void setCity( String newCity ) { city = newCity; } public String getCity() { return city; } public void setState( String newState ) { state = newState; } public String getState() { return state; } public void setZip( String newZip ) { zip = newZip; } public String getZip() { return zip; } public void setEmail( String newEmail ) { email = newEmail; } public String getEmail() { return email; } public void setPhoneNumber( String newPhoneNumber ) { phoneNumber = newPhoneNumber; } public String getPhoneNumber() { return phoneNumber; } public CreditInfo getCreditInfo() { return creditInfo; } public void setCreditInfo( CreditInfo newCreditInfo ) { creditInfo = newCreditInfo; } }









Содержание    Назад    Вперед