json.serialize.test.entity
Class Vehicle

java.lang.Object
  extended by json.serialize.test.entity.Vehicle
Direct Known Subclasses:
Car

public abstract class Vehicle
extends java.lang.Object

An abstract vehicle class for demonstration.


Constructor Summary
Vehicle()
           
 
Method Summary
abstract  java.util.Map getAttributes()
          Returns the various attributes of the vehicle
abstract  java.lang.String getMode()
          Returns the travelling mode of the vehicle
 java.lang.String getName()
          Returns the name of the vehicle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Vehicle

public Vehicle()
Method Detail

getName

public java.lang.String getName()
Returns the name of the vehicle

Returns:
name of Vehicle

getMode

public abstract java.lang.String getMode()
Returns the travelling mode of the vehicle

Returns:
Travelling mode of Vehicle

getAttributes

public abstract java.util.Map getAttributes()
Returns the various attributes of the vehicle

Returns:
various attributes of the vehicle