1 package com.smartdevicelink.proxy.rpc;
\r
3 import java.util.Hashtable;
\r
5 import com.smartdevicelink.proxy.RPCStruct;
\r
6 import com.smartdevicelink.proxy.constants.Names;
\r
9 * Describes the type of vehicle the mobile phone is connected with.
\r
10 * <p><b>Parameter List
\r
11 * <table border="1" rules="all">
\r
15 * <th>Description</th>
\r
16 * <th>SmartDeviceLink Ver. Available</th>
\r
21 * <td>Make of the vehicle, e.g. Ford
\r
23 * <li>Maxlength = 500</li>
\r
26 * <td>SmartDeviceLink 2.0</td>
\r
31 * <td>Model of the vehicle, e.g. Fiesta
\r
33 * <li>Maxlength = 500</li>
\r
36 * <td>SmartDeviceLink 2.0</td>
\r
39 * <td>modelYear</td>
\r
41 * <td>Model Year of the vehicle, e.g. 2013
\r
43 * <li>Maxlength = 500</li>
\r
46 * <td>SmartDeviceLink 2.0</td>
\r
51 * <td>Trim of the vehicle, e.g. SE
\r
53 * <li>Maxlength = 500</li>
\r
56 * <td>SmartDeviceLink 2.0</td>
\r
59 * @since SmartDeviceLink 2.0
\r
61 public class VehicleType extends RPCStruct {
\r
64 * Constructs a newly allocated VehicleType object
\r
66 public VehicleType() { }
\r
69 * Constructs a newly allocated VehicleType object indicated by the Hashtable parameter
\r
70 * @param hash The Hashtable to use
\r
72 public VehicleType(Hashtable hash) {
\r
77 * get the make of the vehicle
\r
78 * @return the make of the vehicle
\r
80 public String getMake() {
\r
81 return (String) store.get(Names.make);
\r
85 * set the make of the vehicle
\r
86 *@param make the make of the vehicle
\r
88 public void setMake(String make) {
\r
90 store.put(Names.make, make);
\r
92 store.remove(Names.make);
\r
97 * get the model of the vehicle
\r
98 * @return the model of the vehicle
\r
100 public String getModel() {
\r
101 return (String) store.get(Names.model);
\r
105 * set the model of the vehicle
\r
106 * @param model the model of the vehicle
\r
108 public void setModel(String model) {
\r
109 if (model != null) {
\r
110 store.put(Names.model, model);
\r
112 store.remove(Names.model);
\r
117 * get the model year of the vehicle
\r
118 * @return the model year of the vehicle
\r
120 public String getModelYear() {
\r
121 return (String) store.get(Names.modelYear);
\r
125 * set the model year of the vehicle
\r
126 * @param modelYear the model year of the vehicle
\r
128 public void setModelYear(String modelYear) {
\r
129 if (modelYear != null) {
\r
130 store.put(Names.modelYear, modelYear);
\r
132 store.remove(Names.modelYear);
\r
137 * get the trim of the vehicle
\r
138 * @return the trim of the vehicle
\r
140 public String getTrim() {
\r
141 return (String) store.get(Names.trim);
\r
145 * set the trim of the vehicle
\r
146 * @param trim the trim of the vehicle
\r
148 public void setTrim(String trim) {
\r
149 if (trim != null) {
\r
150 store.put(Names.trim, trim);
\r
152 store.remove(Names.trim);
\r