|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbandy.example.bos.Car
org.openbandy.example.bos.Sportscar
org.openbandy.example.bos.EuropeanSportscar
public class EuropeanSportscar
TODO describe purpose and usage
(c) Copyright Philipp Bolliger 2007, ALL RIGHTS RESERVED.
| Constructor Summary | |
|---|---|
EuropeanSportscar()
|
|
| Method Summary | |
|---|---|
void |
deserialize(Serializer serializer,
SerializationBuffer serializationBuffer)
This method must overwrite the attributes denoted in getAttributeNames() with values read from the container provided. |
void |
getAttributeNames(java.util.Vector attributes)
This method must put the name of every attribute that needs to be serialized in the given Vector. |
Serializable |
getCopy()
Must return a copy of the object that is equal according to the method isEuqalTo(). |
java.lang.String |
getLegibleString()
Must return a human readable String representation of the object. |
int |
getNcap()
|
Serializable |
getNewInstance()
Must return a new and initialized instance. |
void |
getReferencedIdNames(java.util.Vector referencedIdNames)
This method must put every id name of referenced objects, i.e. |
void |
getReferences(java.util.Vector references)
This method must put every reference to Serializable objects, i.e. |
boolean |
isEqual(Serializable serializableObject)
Must return true if the serializableObject is equal to this, except for the id but INCLUDING equality of referenced serializables. |
boolean |
isEqualShallow(Serializable serializableObject)
Must return true if the serializableObject is equal to this, except for the id, EXCLUDING equality of referenced serializables. |
void |
serialize(Serializer serializer,
SerializationBuffer serializationBuffer)
This method must fill the container provided with the serialization- Object with values for every attribute denoted in getAttributeNames(). |
void |
setNcap(int ncap)
|
| Methods inherited from class org.openbandy.example.bos.Sportscar |
|---|
getBhp, getSprint, setBhp, setSprint |
| Methods inherited from class org.openbandy.example.bos.Car |
|---|
addTire, getBrand, getEngine, getIdName, getIdValue, getLength, getTires, setBrand, setEngine, setIdValue, setLength, setTires |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EuropeanSportscar()
| Method Detail |
|---|
public int getNcap()
public void setNcap(int ncap)
public void serialize(Serializer serializer,
SerializationBuffer serializationBuffer)
Serializable
serialize in interface Serializableserialize in class Sportscarserializer - -
the serializer used for call-backsserializationBuffer - -
the serializationBuffer containing the container to write
values to
public void deserialize(Serializer serializer,
SerializationBuffer serializationBuffer)
Serializable
deserialize in interface Serializabledeserialize in class Sportscarserializer - -
the serializer used for call-backsserializationBuffer - -
the buffer to read values frompublic void getAttributeNames(java.util.Vector attributes)
Serializableattributes, there must be a corresponding field in the
database for example.
getAttributeNames in interface SerializablegetAttributeNames in class Sportscarattributes - -
the vector to be filledpublic void getReferences(java.util.Vector references)
Serializable
getReferences in interface SerializablegetReferences in class Sportscarreferences - -
the vector to be filledpublic void getReferencedIdNames(java.util.Vector referencedIdNames)
Serializable
getReferencedIdNames in interface SerializablegetReferencedIdNames in class SportscarreferencedIdNames - -
the vector to be filledpublic java.lang.String getLegibleString()
Serializable
getLegibleString in interface SerializablegetLegibleString in class Sportscar
public boolean isEqualShallow(Serializable serializableObject)
throws java.lang.ClassCastException
Serializable
isEqualShallow in interface SerializableisEqualShallow in class SportscarserializableObject - -
the object to compare
java.lang.ClassCastException
public boolean isEqual(Serializable serializableObject)
throws java.lang.ClassCastException
Serializable
isEqual in interface SerializableisEqual in class SportscarserializableObject - -
the object to compare
java.lang.ClassCastExceptionpublic Serializable getCopy()
Serializable
getCopy in interface SerializablegetCopy in class Sportscarpublic Serializable getNewInstance()
Serializable
getNewInstance in interface SerializablegetNewInstance in class Sportscar
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||