public class VehicleStorage extends Storage<Vehicle> implements java.io.Serializable, XMLFileSupport
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Vehicle |
getCurrentVehicle()
現在使用している移動手段を取得します.
|
static VehicleStorage |
getInstance()
インスタンスを取得します.
|
void |
readFromXML(java.lang.String filePath)
コンテンツをXMLからロードします.
|
void |
setCurrentVehicle(Vehicle currentVehicle)
現在使用中の移動手段を変更します.
|
add, addAll, addAll, asList, clear, contains, contains, containsAll, get, getAll, getIfContains, getProperties, isEmpty, iterator, keySet, printAll, printAll, put, putAll, putAll, remove, remove, removeAll, removeAll, removeAll, size, toStringpublic static VehicleStorage getInstance()
public Vehicle getCurrentVehicle()
public void setCurrentVehicle(Vehicle currentVehicle)
currentVehicle - 新しい移動手段を送信します。public void readFromXML(java.lang.String filePath)
throws IllegalXMLFormatException,
ContentsFileNotFoundException,
ContentsIOException,
NameNotFoundException
readFromXML インタフェース内 XMLFileSupportfilePath - ロードするXMLファイルのパスを指定します。NameNotFoundException - 指定された名前を持つチップ属性が ChipAttributeStorageに登録されていない場合に投げられます。IllegalXMLFormatException - XMLフォーマットがDTDに適合しない場合などに投げることができます。ContentsFileNotFoundException - 指定されたファイルが存在しない場合に投げられます。ContentsIOException - 指定されたファイルがロードできない場合に投げられます。