net.sourceforge.ajaxtags.demo
Class CarService

java.lang.Object
  extended by net.sourceforge.ajaxtags.demo.CarService

public class CarService
extends Object

This class simulate a Car Service. It's not intended to be used as a good example (we recomend that you use interfaces, etc).

Author:
Darren Spurgeon, Jens Kapitza

Constructor Summary
CarService()
          Constructor for CarService.
 
Method Summary
 List<Car> getAllCars()
          Get all cars.
 List<Car> getModelsByMake(String make)
          Get all models for a particular car maker.
 List<Car> getModelsByName(String name)
          Get all models that start with name.
 List<Character> getModelsFirstChar()
          Read the first char of the model and return a sorted List.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CarService

public CarService()
Constructor for CarService.

Method Detail

getModelsByMake

public List<Car> getModelsByMake(String make)
Get all models for a particular car maker.

Parameters:
make - the make of the car
Returns:
a List of org.ajaxtags.demo.Car objects

getModelsByName

public List<Car> getModelsByName(String name)
Get all models that start with name.

Parameters:
name - the name of the car model
Returns:
a List of org.ajaxtags.demo.Car objects

getAllCars

public List<Car> getAllCars()
Get all cars.

Returns:
a List of org.ajaxtags.demo.Car objects

getModelsFirstChar

public List<Character> getModelsFirstChar()
Read the first char of the model and return a sorted List.

Returns:
a list of chars.


Copyright © 2005-2010 The Ajaxtags Team. All Rights Reserved.