|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.database.DatabaseFactory
public final class DatabaseFactory
Field Summary | |
---|---|
static java.awt.Image |
backImage
The common back picture of the cards of the selected turn based system. |
static java.awt.Image |
blankImage
A blank blacked-image. |
static java.awt.Image |
damageImage
The picture representing a damage for the selected turn based system. |
static java.awt.Image |
damageScaledImage
The picture representing a damage for the selected turn based system. |
static Proxy[] |
dataProxies
The loaded proxy configurations. |
static Proxy[] |
pictureProxies
The loaded proxy configurations. |
static java.util.Map<java.lang.String,PropertyConfig> |
propertiesCacheConfig
Available properties of current TBS for databases. |
static java.awt.image.BufferedImage |
scaledBackImage
The common scaled back picture of the cards of the selected turn based system. |
Method Summary | |
---|---|
static DatabaseCard |
getDatabase(java.lang.String pictureName,
CardModel cardModel,
java.util.Map<java.lang.String,java.lang.String> constraints)
Return the DatabaseCard object from the given card name. |
static Proxy |
getProxy(java.lang.String proxyName)
Return the proxy object giving it's name. |
static void |
init(java.io.InputStream dbStream)
Init property confgurations from the dbStream. |
static void |
saveCache()
Save the cache into the database XML file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Proxy[] pictureProxies
public static Proxy[] dataProxies
public static java.awt.Image blankImage
public static java.util.Map<java.lang.String,PropertyConfig> propertiesCacheConfig
public static java.awt.Image backImage
null
while this factory has not been initalized.
init(InputStream)
public static java.awt.image.BufferedImage scaledBackImage
null
while this factory has not been initalized.
public static java.awt.Image damageImage
null
while this factory has not been initalized.
init(InputStream)
public static java.awt.Image damageScaledImage
null
while this factory has not been initalized.
init(InputStream)
Method Detail |
---|
public static Proxy getProxy(java.lang.String proxyName)
null
value is
returned if the proxy has not been found or if the proxyName
was null
, empty, or no proxy were loaded (occurs in
initComponent() method calls).
proxyName
- the poxy's name
null
otherwise.public static void init(java.io.InputStream dbStream) throws java.io.IOException
dbStream
- the mdb file containing rules
java.io.IOException
- error during the database configuration.public static void saveCache()
public static DatabaseCard getDatabase(java.lang.String pictureName, CardModel cardModel, java.util.Map<java.lang.String,java.lang.String> constraints)
pictureName
- the picture name associated to the database object. May be null to
use the picture associated to the given card instead.cardModel
- the card name (no translated one)constraints
- constraints set {key,value}. May be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |