net.sourceforge.ajaxtags.demo
Class Car
java.lang.Object
net.sourceforge.ajaxtags.demo.Car
- All Implemented Interfaces:
- Serializable, AjaxXmlBuilder.PropertyReader
public class Car
- extends Object
- implements Serializable, AjaxXmlBuilder.PropertyReader
A Car entity with make and model properties.
- Author:
- Darren Spurgeon, Jens Kapitza
- See Also:
- Serialized Form
|
Constructor Summary |
Car()
Constructor for Car. |
Car(String make,
String model)
Constructor for Car. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Car
public Car()
- Constructor for Car.
Car
public Car(String make,
String model)
- Constructor for Car.
- Parameters:
make - model -
getMake
public String getMake()
- Returns:
- Returns the make.
setMake
public void setMake(String make)
- Parameters:
make - The make to set.
getModel
public String getModel()
- Returns:
- Returns the model.
setModel
public void setModel(String model)
- Parameters:
model - The model to set.
getName
public String getName()
- Specified by:
getName in interface AjaxXmlBuilder.PropertyReader
- Returns:
- the name of the car e.g. the model
getValue
public String getValue()
- Specified by:
getValue in interface AjaxXmlBuilder.PropertyReader
- Returns:
- the value of the car e.g. the make
isCData
public boolean isCData()
- Specified by:
isCData in interface AjaxXmlBuilder.PropertyReader
- Returns:
- true, cause we should send it as CData to make sure everything works fine if slashes
are included
Copyright © 2005-2010 The Ajaxtags Team. All Rights Reserved.