1 37 38 package com.sun.j2ee.blueprints.catalog; 39 40 import java.io.Serializable ; 41 42 46 public class Transportation implements Serializable { 47 48 protected String transportationId; 49 protected String name; 50 protected String description; 51 protected String imageURI; 52 protected String origin; 53 protected String destination; 54 protected String carrier; 55 protected String departureTime; 56 protected String arrivalTime; 57 protected double price; 58 protected String travelClass; 59 60 public Transportation() { } 61 62 public Transportation(String transportationId, 63 String name, 64 String description, 65 String imageURI, 66 double price, 67 String origin, 68 String destination, 69 String carrier, 70 String departureTime, 71 String arrivalTime, 72 String travelClass) { 73 74 this.transportationId = transportationId; 75 this.name = name; 76 this.description = description; 77 this.imageURI = imageURI; 78 this.price = price; 79 this.origin = origin; 80 this.destination = destination; 81 this.carrier = carrier; 82 this.departureTime = departureTime; 83 this.arrivalTime = arrivalTime; 84 this.travelClass = travelClass; 85 } 86 87 public String getTransportationId() { 88 return transportationId; 89 } 90 91 public String getName() { 92 return name; 93 } 94 95 public String getDescription() { 96 return description; 97 } 98 99 public String getImageURI() { 100 return imageURI; 101 } 102 103 public double getPrice() { 104 return price; 105 } 106 107 public String getOrigin() { 108 return origin; 109 } 110 public String getDestination() { 111 return destination; 112 } 113 public String getCarrier() { 114 return carrier; 115 } 116 117 public String getDepartureTime() { 118 return departureTime; 119 } 120 121 public String getArrivalTime() { 122 return arrivalTime; 123 } 124 125 public String getTravelClass() { 126 return travelClass; 127 } 128 129 130 public String toString() { 131 return "Transportation[id=" + transportationId + 132 ", name=" + name + 133 ", price=" + price + 134 ", description=" + description + 135 ", imageURI=" + imageURI + 136 ", origin=" + origin + 137 ", destination=" + destination + 138 ", carrier=" + carrier + 139 ", departure time=" + departureTime + 140 ", arrival time =" + arrivalTime + 141 ", travel class =" + travelClass + 142 "]"; 143 } 144 } 145 | Popular Tags |