|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.application.state.StateFactory
public final class StateFactory
This class is used as the factory for the state exchange objects mainly the
State
implementation and the StateStorage
implementation.
Field Summary | |
---|---|
static java.lang.String |
defaultstateStorage
DOCUMENT ME! |
static java.util.HashMap |
stateStorages
DOCUMENT ME! |
static java.lang.String |
STORAGE_BIN
DOCUMENT ME! |
static java.lang.String |
STORAGE_CDB
DOCUMENT ME! |
static java.lang.String |
STORAGE_DAT
DOCUMENT ME! |
static java.lang.String |
STORAGE_TXT
DOCUMENT ME! |
static java.lang.String |
STORAGE_XML
DOCUMENT ME! |
Constructor Summary | |
---|---|
StateFactory()
|
Method Summary | |
---|---|
static State |
createState()
Creates new storage with default ID. |
static StateStorage |
createStateStorage()
DOCUMENT ME! |
static StateStorage |
createStateStorage(java.lang.String type)
DOCUMENT ME! |
static StateStorage |
createStateStorage(java.lang.String filePath,
java.lang.String appName)
DOCUMENT ME! |
static void |
registerStateStorage(java.lang.String type,
java.lang.String className)
DOCUMENT ME! |
static void |
setDefaultStateStorage(java.lang.String type)
DOCUMENT ME! |
protected static boolean |
typeExists(java.io.File[] files,
java.lang.String type)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STORAGE_BIN
public static final java.lang.String STORAGE_TXT
public static final java.lang.String STORAGE_XML
public static final java.lang.String STORAGE_CDB
public static final java.lang.String STORAGE_DAT
public static java.util.HashMap stateStorages
public static java.lang.String defaultstateStorage
Constructor Detail |
---|
public StateFactory()
Method Detail |
---|
public static void registerStateStorage(java.lang.String type, java.lang.String className)
type
- DOCUMENT ME!className
- DOCUMENT ME!public static void setDefaultStateStorage(java.lang.String type)
type
- DOCUMENT ME!protected static boolean typeExists(java.io.File[] files, java.lang.String type)
public static StateStorage createStateStorage(java.lang.String filePath, java.lang.String appName)
filePath
- DOCUMENT ME!appName
- DOCUMENT ME!
public static StateStorage createStateStorage()
public static StateStorage createStateStorage(java.lang.String type)
type
- DOCUMENT ME!
java.lang.IllegalArgumentException
- DOCUMENT ME!public static State createState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |