DESY ACOP Beans Home

com.cosylab.application.state
Interface StateStorage

All Known Implementing Classes:
CDBStateStorage, DefaultStateStorage, NewXMLStateStorage, OldXMLStateStorage, SerialStateStorage, TextStateStorage, XMLStateStorage

public interface StateStorage

This interface should be implemented by the objects which will be used for storing and restoring an array of the State objects.

Author:
dvitas

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!
 java.util.List getStates()
          DOCUMENT ME!
 java.util.Iterator iterator()
          Rerurns iterator over states.
 void load(java.io.InputStream stream)
          DOCUMENT ME!
 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!
 void store(java.io.OutputStream stream)
          DOCUMENT ME!
 void store(java.lang.String filePath, java.lang.String applicationName)
          DOCUMENT ME!
 

Method Detail

add

void add(State state)
Adds new state to storage.

Parameters:
state - the state to be added

addAll

void addAll(java.util.List states)
DOCUMENT ME!

Parameters:
states - DOCUMENT ME!

getStates

java.util.List getStates()
DOCUMENT ME!

Returns:
DOCUMENT ME!

load

void load(java.lang.String filePath,
          java.lang.String applicationName)
          throws java.io.IOException
DOCUMENT ME! TODO: Add load(InputStream, String) to support loading from non-file sources!

Parameters:
filePath - DOCUMENT ME!
applicationName - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

load

void load(java.io.InputStream stream)
          throws java.io.IOException
DOCUMENT ME!

Parameters:
stream - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

store

void store(java.lang.String filePath,
           java.lang.String applicationName)
           throws java.io.IOException
DOCUMENT ME!

Parameters:
filePath - DOCUMENT ME!
applicationName - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

store

void store(java.io.OutputStream stream)
           throws java.io.IOException
DOCUMENT ME!

Parameters:
stream -
Throws:
java.io.IOException - DOCUMENT ME!

remove

void remove(State st)
DOCUMENT ME!

Parameters:
st - DOCUMENT ME!

contains

boolean contains(State st)
DOCUMENT ME!

Parameters:
st - DOCUMENT ME!
Returns:
DOCUMENT ME!

iterator

java.util.Iterator iterator()
Rerurns iterator over states.

Returns:
iterator over states


Copyright © 2010. All Rights Reserved.