|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectkinugasa.contents.resource.Storage<ChipAttribute>
kinugasa.field.ChipAttributeStorage
public final class ChipAttributeStorage
チップ属性を格納するストレージです.
チップ属性のXMLは、kinugasaChipAttribute.dtdを使用します。
チップ属性をXMLからロードする際のフォーマットはDTDを確認してください。
このストレージには、2つのチップ属性が自動で追加されます。
フィールドの概要 | |
---|---|
private static ChipAttributeStorage |
INSTANCE
唯一のインスタンスです. |
private static long |
serialVersionUID
|
コンストラクタの概要 | |
---|---|
private |
ChipAttributeStorage()
シングルトンクラスです. |
メソッドの概要 | |
---|---|
void |
clear()
マップからすべてのオブジェクトを削除します. |
static ChipAttributeStorage |
getInstance()
インスタンスを取得します. |
java.util.Iterator<ChipAttribute> |
iterator()
イテレータを返します. |
private void |
putDefaultAttribute()
削除およびクリアした際に、デフォルトで追加されている チップ属性を設定しなおします. |
void |
readFromXML(java.lang.String filePath)
コンテンツをXMLからロードします. |
void |
remove(ChipAttribute val)
オブジェクトをマップから削除します. |
void |
remove(java.lang.String key)
指定した名前を持つオブジェクトをマップから削除します. |
void |
removeAll(ChipAttribute... values)
オブジェクトをマップから削除します. |
void |
removeAll(java.util.Collection<? extends ChipAttribute> values)
オブジェクトをマップから削除します. |
void |
removeAll(java.lang.String... keys)
指定した名前を持つオブジェクトをマップから削除します. |
クラス kinugasa.contents.resource.Storage から継承されたメソッド |
---|
add, addAll, addAll, asList, contains, contains, containsAll, get, getAll, getIfContains, getProperties, isEmpty, printAll, printAll, put, putAll, putAll, size, toString |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
---|
private static final long serialVersionUID
private static final ChipAttributeStorage INSTANCE
コンストラクタの詳細 |
---|
private ChipAttributeStorage()
メソッドの詳細 |
---|
public void readFromXML(java.lang.String filePath) throws IllegalXMLFormatException, ContentsFileNotFoundException, ContentsIOException, DuplicateNameException
XMLFileSupport
内の readFromXML
filePath
- ロードするXMLファイルのパスを指定します。DuplicateNameException
- チップ属性の名前が重複する場合に投げられます。IllegalXMLFormatException
- XMLフォーマットがDTDに適合しない場合などに投げることができます。ContentsFileNotFoundException
- 指定されたファイルが存在しない場合に投げられます。ContentsIOException
- 指定されたファイルがロードできない場合に投げられます。private void putDefaultAttribute()
public java.util.Iterator<ChipAttribute> iterator()
java.lang.Iterable<ChipAttribute>
内の iterator
Storage<ChipAttribute>
内の iterator
public static ChipAttributeStorage getInstance()
public void remove(ChipAttribute val)
Storage
の記述:
Storage<ChipAttribute>
内の remove
val
- 削除するオブジェクトを指定します。public void remove(java.lang.String key)
Storage
の記述:
Storage<ChipAttribute>
内の remove
key
- 削除するオブジェクトの名前を指定します。public void removeAll(ChipAttribute... values)
Storage
の記述:
Storage<ChipAttribute>
内の removeAll
values
- 削除するオブジェクトを指定します。public void removeAll(java.util.Collection<? extends ChipAttribute> values)
Storage
の記述:
Storage<ChipAttribute>
内の removeAll
values
- 削除するオブジェクトを指定します。public void removeAll(java.lang.String... keys)
Storage
の記述:
Storage<ChipAttribute>
内の removeAll
keys
- 削除するオブジェクトの名前を指定します。public void clear()
Storage
の記述:
Storage<ChipAttribute>
内の clear
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |