kinugasa.field
クラス ChipSetStorage

java.lang.Object
  上位を拡張 kinugasa.contents.resource.Storage<ChipSet>
      上位を拡張 kinugasa.field.ChipSetStorage
すべての実装されたインタフェース:
java.lang.Iterable<ChipSet>, XMLFileSupport

public class ChipSetStorage
extends Storage<ChipSet>
implements XMLFileSupport

Kinugasa : ChipSetStorage : 全てのチップセットを登録するストレージです.
チップセットのXMLは、kinugasaChipSet.dtdを使用します。
チップセットをXMLからロードする場合のフォーマットはDTDを確認してください。

バージョン:
1.0.0 - 2013/04/28_23:30:28
作成者:
Dra0211

フィールドの概要
private static ChipSetStorage INSTANCE
          唯一のインスタンスです.
 
コンストラクタの概要
private ChipSetStorage()
          シングルトンクラスです.
 
メソッドの概要
static ChipSetStorage getInstance()
          インスタンスを取得します.
 void readFromXML(java.lang.String filePath)
          チップセットの構築を行います.
 
クラス kinugasa.contents.resource.Storage から継承されたメソッド
add, addAll, addAll, asList, clear, contains, contains, containsAll, get, getAll, getIfContains, getProperties, isEmpty, iterator, printAll, printAll, put, putAll, putAll, remove, remove, removeAll, removeAll, removeAll, size, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

INSTANCE

private static final ChipSetStorage INSTANCE
唯一のインスタンスです.

コンストラクタの詳細

ChipSetStorage

private ChipSetStorage()
シングルトンクラスです. getInstanceを使用してください。

メソッドの詳細

getInstance

public static ChipSetStorage getInstance()
インスタンスを取得します.

戻り値:
ChipSetStorageのインスタンスを返します。

readFromXML

public void readFromXML(java.lang.String filePath)
                 throws IllegalXMLFormatException,
                        ContentsFileNotFoundException,
                        ContentsIOException,
                        java.lang.NumberFormatException,
                        NameNotFoundException
チップセットの構築を行います.
コンテンツをXMLからロードします. ほとんどの実装では、ストレージに対するデータの追加を行います。

定義:
インタフェース XMLFileSupport 内の readFromXML
パラメータ:
filePath - ロードするXMLファイルのパスを指定します。
例外:
java.lang.NumberFormatException - 切り出しサイズの数値がint型に変換できない場合に投げられます。
NameNotFoundException - 指定された名前を持つチップ属性が ChipAttributeStorageに登録されていない場合に投げられます。
IllegalXMLFormatException - XMLフォーマットがDTDに適合しない場合などに投げることができます。
ContentsFileNotFoundException - 指定されたファイルが存在しない場合に投げられます。
ContentsIOException - 指定されたファイルがロードできない場合に投げられます。