|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.application.state.impl.DefaultStateStorage
public abstract class DefaultStateStorage
This class is an abstract class that can be extended by the
StateStorage
implementators.
Field Summary | |
---|---|
protected StateStorage |
delegate
|
protected java.util.ArrayList |
states
|
Constructor Summary | |
---|---|
DefaultStateStorage()
|
|
DefaultStateStorage(StateStorage other)
Creates a new DefaultStateStorage object. |
Method Summary | |
---|---|
void |
add(State state)
Adds new state to storage. |
void |
addAll(java.util.List states)
DOCUMENT ME! |
boolean |
contains(State st)
DOCUMENT ME! |
protected java.io.InputStream |
getInputStream(java.lang.String filePath,
java.lang.String fileName)
|
protected java.io.OutputStream |
getOutputStream(java.lang.String filePath,
java.lang.String fileName)
|
java.util.List |
getStates()
DOCUMENT ME! |
java.util.Iterator |
iterator()
Rerurns iterator over states. |
abstract void |
load(java.lang.String filePath,
java.lang.String applicationName)
DOCUMENT ME! TODO: Add load(InputStream, String) to support loading from non-file sources! |
void |
remove(State st)
DOCUMENT ME! |
abstract void |
store(java.lang.String filePath,
java.lang.String applicationName)
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.cosylab.application.state.StateStorage |
---|
load, store |
Field Detail |
---|
protected java.util.ArrayList states
protected StateStorage delegate
Constructor Detail |
---|
public DefaultStateStorage()
public DefaultStateStorage(StateStorage other)
other
- DOCUMENT ME!Method Detail |
---|
public void add(State state)
StateStorage
add
in interface StateStorage
state
- the state to be addedpublic void addAll(java.util.List states)
StateStorage
addAll
in interface StateStorage
states
- DOCUMENT ME!protected java.io.InputStream getInputStream(java.lang.String filePath, java.lang.String fileName)
protected java.io.OutputStream getOutputStream(java.lang.String filePath, java.lang.String fileName) throws java.io.IOException
java.io.IOException
public abstract void load(java.lang.String filePath, java.lang.String applicationName) throws java.io.IOException
StateStorage
load
in interface StateStorage
filePath
- DOCUMENT ME!applicationName
- DOCUMENT ME!
java.io.IOException
- DOCUMENT ME!public abstract void store(java.lang.String filePath, java.lang.String applicationName) throws java.io.IOException
store
in interface StateStorage
filePath
- DOCUMENT ME!applicationName
- DOCUMENT ME!
java.io.IOException
- DOCUMENT ME!public java.util.List getStates()
StateStorage
getStates
in interface StateStorage
public boolean contains(State st)
StateStorage
contains
in interface StateStorage
st
- DOCUMENT ME!
public java.util.Iterator iterator()
StateStorage
iterator
in interface StateStorage
public void remove(State st)
StateStorage
remove
in interface StateStorage
st
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |