|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.modifier.ObjectFactory
public final class ObjectFactory
Method Summary | |
---|---|
static int |
getNbObject(java.lang.String objectName,
MCard onCard,
Test objectTest)
Return occurences number of the given object with the given name. |
static net.sf.magicproject.modifier.ObjectColorModifierModel |
getObjectColorModifierModel(java.lang.String name)
Return the named color modifier madel. |
static net.sf.magicproject.modifier.ObjectIdCardModifierModel |
getObjectIdCardModifierModel(java.lang.String name)
Return the named type modifier madel. |
static ObjectModifierModel |
getObjectModifierModel(java.lang.String objectName)
Return object corresponding to the given name. |
static java.awt.Image |
getObjectPicture(java.lang.String objectName)
Return picture of the given object. |
static net.sf.magicproject.modifier.ObjectPropertyModifierModel |
getObjectPropertyModifierModel(java.lang.String name)
Return the named property modifier madel. |
static net.sf.magicproject.modifier.ObjectRegisterModifierModel |
getObjectRegisterModifierModel(java.lang.String name)
Return the named register modifier madel. |
static void |
init(java.io.InputStream dbStream)
Read the available objects. |
static void |
removeObjectModifier(java.lang.String objectName,
MCard fromCard,
Test objectTest)
Remove if can, one instance of given object with the specified name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ObjectModifierModel getObjectModifierModel(java.lang.String objectName)
objectName
- the object's name.
public static int getNbObject(java.lang.String objectName, MCard onCard, Test objectTest)
objectName
- the object's name.objectTest
- The test applied on specific modifier to be removed.onCard
- the card on which objects will be counted.
public static java.awt.Image getObjectPicture(java.lang.String objectName)
objectName
- the object's name
public static void removeObjectModifier(java.lang.String objectName, MCard fromCard, Test objectTest)
objectName
- the object to remove.fromCard
- the card the object will be removed from.objectTest
- The test applied on specific modifier to be removed.public static void init(java.io.InputStream dbStream) throws java.io.IOException
dbStream
- the mdb stream's header.
java.io.IOException
- error during the mdb stream read.public static net.sf.magicproject.modifier.ObjectRegisterModifierModel getObjectRegisterModifierModel(java.lang.String name)
name
- the modifier name.
public static net.sf.magicproject.modifier.ObjectIdCardModifierModel getObjectIdCardModifierModel(java.lang.String name)
name
- the modifier name.
public static net.sf.magicproject.modifier.ObjectColorModifierModel getObjectColorModifierModel(java.lang.String name)
name
- the modifier name.
public static net.sf.magicproject.modifier.ObjectPropertyModifierModel getObjectPropertyModifierModel(java.lang.String name)
name
- the modifier name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |