1 37 38 package com.sun.j2ee.blueprints.consumerwebsite; 39 40 import java.io.Serializable ; 41 import com.sun.j2ee.blueprints.catalog.*; 42 43 44 47 public class TransportationBean extends Transportation implements Serializable { 48 49 50 public TransportationBean(String transportationId, 51 String name, 52 String description, 53 String imageURI, 54 double price, 55 String origin, 56 String destination, 57 String carrier, 58 String departureTime, 59 String arrivalTime, 60 String travelClass) { 61 62 super(transportationId, name, description, imageURI, price, origin, 63 destination, carrier, departureTime, arrivalTime, travelClass); 64 65 } 66 public TransportationBean() { 67 68 } 69 70 72 74 public void setId(String transportationId) { 75 this.transportationId = transportationId; 76 } 77 78 public String getId() { 79 return transportationId; 80 } 81 82 public void setName(String name) { 83 this.name = name; 84 } 85 86 public void setDescription(String description) { 87 this.description = description; 88 } 89 90 public void setImageURI(String imageURI) { 91 this.imageURI = imageURI; 92 } 93 94 public void setPrice(double price) { 95 this.price = price; 96 } 97 public void setOrigin(String origin) { 98 this.origin = origin; 99 } 100 public void setDestination(String destination) { 101 this.destination= destination; 102 } 103 public void setCarrier(String carrier) { 104 this.carrier= carrier; 105 } 106 public void setDepartureTime(String departureTime) { 107 this.departureTime= departureTime; 108 } 109 public void setArrivalTime(String arrivalTime) { 110 this.arrivalTime= arrivalTime; 111 } 112 public void setTravelClass(String travelClass) { 113 this.travelClass= travelClass; 114 } 115 116 117 public String toString() { 118 return "Transportation[id=" + getTransportationId() + 119 ", name=" + getName() + 120 ", price=" + getPrice() + 121 ", description=" + getDescription() + 122 ", origin=" + getOrigin() + 123 ", destination=" + getDestination()+ 124 ", carrier=" + getCarrier() + 125 ", departure time=" + getDepartureTime() + 126 ", arrival time =" + getArrivalTime() + 127 ", travel class =" + getTravelClass() + 128 "]"; 129 } 130 131 } 132 | Popular Tags |