FileDocCategorySizeDatePackage
Listing.javaAPI DocExample1677Tue Jan 15 11:45:50 GMT 2002javasoap.book.ch8

Listing

public class Listing extends Object

Fields Summary
String
_make
String
_model
int
_year
int
_miles
String
_ownerName
String
_ownerEmail
Constructors Summary
public Listing()

   
public Listing(String make, String model, int year, int miles, String ownerName, String ownerEmail)


      setMake(make);
      setModel(model);
      setYear(year);
      setMiles(miles);
      setOwnerName(ownerName);
      setOwnerEmail(ownerEmail);
   
Methods Summary
public java.lang.StringgetMake()

      return _make;
   
public intgetMiles()

      return _miles;
   
public java.lang.StringgetModel()

      return _model;
   
public java.lang.StringgetOwnerEmail()

      return _ownerEmail;
   
public java.lang.StringgetOwnerName()

      return _ownerName;
   
public intgetyear()

      return _year;
   
public voidsetMake(java.lang.String make)

      _make = make;
   
public voidsetMiles(int miles)

      _miles = miles;
   
public voidsetModel(java.lang.String model)

      _model = model;
   
public voidsetOwnerEmail(java.lang.String ownerEmail)

      _ownerEmail = ownerEmail;
   
public voidsetOwnerName(java.lang.String ownerName)

      _ownerName = ownerName;
   
public voidsetYear(int year)

      _year = year;
   
public java.lang.StringtoString()

      String result = String.valueOf(_year) + " " +
                      _make + " " + _model +
                      " with " + String.valueOf(_miles) + 
                      " miles:" +
                      "\n   Owned by " + _ownerName + "(" +
                      _ownerEmail + ")";
      return result;