1 package com.lamatek.tags.google.beans; 2 3 import java.text.SimpleDateFormat ; 4 import java.util.Date ; 5 6 7 public class TrafficEventBean { 8 9 double longitude = 0.00d; 10 double latitude = 0.00d; 11 String title = null; 12 String description = null; 13 String type = null; 14 String direction = null; 15 Date reported = null; 16 Date updated = null; 17 Date ending = null; 18 int severity = 0; 19 24 public TrafficEventBean() { 25 } 26 32 public String getContent() { 33 String contents = "<div style=\"text-align: left\">"; 34 contents += "<table>"; 35 contents += "<tr><th colspan=\"2\">" + title + "</th></tr>"; 36 contents += "<tr><td colspan=\"2\" style=\"white-space: wrap\">" + description + "</td></tr>"; 37 contents += "<tr><td>Severity:</td><td width=\"100%\">" + severity + "</td></tr>"; 38 contents += "<tr><td>Direction:</td><td width=\"100%\">" + direction + "</td></tr>"; 39 contents += "</table>"; 40 contents += "</div>"; 41 return EscapeChars.escape(contents); 42 } 43 48 public String getDescription() { 49 return description; 50 } 51 56 public void setDescription(String description) { 57 this.description = description; 58 } 59 64 public double getLatitude() { 65 return latitude; 66 } 67 72 public void setLatitude(double latitude) { 73 this.latitude = latitude; 74 } 75 80 public double getLongitude() { 81 return longitude; 82 } 83 88 public void setLongitude(double longitude) { 89 this.longitude = longitude; 90 } 91 96 public String getType() { 97 return type; 98 } 99 104 public void setType(String type) { 105 this.type = type; 106 } 107 112 public int getSeverity() { 113 return severity; 114 } 115 120 public void setSeverity(int severity) { 121 this.severity = severity; 122 } 123 128 public String getTitle() { 129 return title; 130 } 131 136 public void setTitle(String title) { 137 this.title = title; 138 } 139 143 public String getDirection() { 144 return direction; 145 } 146 151 public void setDirection(String direction) { 152 this.direction = direction; 153 } 154 160 public Date getEnding() { 161 return ending; 162 } 163 168 public void setEnding(Date ending) { 169 this.ending = ending; 170 } 171 176 public Date getReported() { 177 return reported; 178 } 179 184 public void setReported(Date reported) { 185 this.reported = reported; 186 } 187 192 public Date getUpdated() { 193 return updated; 194 } 195 200 public void setUpdated(Date updated) { 201 this.updated = updated; 202 } 203 } 204 | Popular Tags |