net.sf.magicproject.xml
Class XmlConfiguration

java.lang.Object
  extended by net.sf.magicproject.xml.XmlConfiguration

public class XmlConfiguration
extends java.lang.Object

Author:
Fabrice Daugan

Field Summary
static int error
          Found errors
static java.util.List<PairStringInt> exportedDamageTypes
          Exported damage types
static java.util.List<PairStringInt> exportedPhases
          Exported phases
static java.util.List<PairStringInt> exportedProperties
          Exported properties
static java.util.List<PairStringInt> exportedTypes
          Exported types
static boolean noPayMana
          Indicates that the next 'paymana' actions would be played the parameter 'colorless="0"'
static java.util.Map<java.lang.Integer,java.lang.String> propertyPictures
          Exported properties
static int uncompleted
          Found uncompleted cards
static boolean validationOn
          Is schema validation is activated.
static int warning
          Found warnings
 
Constructor Summary
XmlConfiguration(java.io.InputStream configuration)
          Constructor.
 
Method Summary
static boolean isDebugEnable()
          Indicates the debug data are saved in the mdb.
static void main(java.lang.String... args)
           2 modes: Update the a MDB for specified TBS against the XML files (main file, cards and fragments).
 void newInstance(java.lang.String xmlFile, java.lang.String workingDir, java.io.OutputStream output)
          Create a new object and configure it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validationOn

public static boolean validationOn
Is schema validation is activated.


exportedProperties

public static java.util.List<PairStringInt> exportedProperties
Exported properties


propertyPictures

public static java.util.Map<java.lang.Integer,java.lang.String> propertyPictures
Exported properties


exportedTypes

public static java.util.List<PairStringInt> exportedTypes
Exported types


exportedPhases

public static java.util.List<PairStringInt> exportedPhases
Exported phases


exportedDamageTypes

public static java.util.List<PairStringInt> exportedDamageTypes
Exported damage types


noPayMana

public static boolean noPayMana
Indicates that the next 'paymana' actions would be played the parameter 'colorless="0"'


error

public static int error
Found errors


warning

public static int warning
Found warnings


uncompleted

public static int uncompleted
Found uncompleted cards

Constructor Detail

XmlConfiguration

public XmlConfiguration(java.io.InputStream configuration)
                 throws org.xml.sax.SAXException,
                        java.io.IOException
Constructor.

Parameters:
configuration - An input stream containing a complete e.g. configuration file
Throws:
org.xml.sax.SAXException - parsing error.
java.io.IOException - writing error.
Method Detail

newInstance

public void newInstance(java.lang.String xmlFile,
                        java.lang.String workingDir,
                        java.io.OutputStream output)
Create a new object and configure it. A new object is created and configured.

Parameters:
xmlFile - the xml source file.
workingDir - the working dir.
output - the output strem of mdb file.

main

public static void main(java.lang.String... args)

Parameters:
args - main arguments.

isDebugEnable

public static boolean isDebugEnable()
Indicates the debug data are saved in the mdb.

Returns:
true if the debug data are saved in the mdb.


Copyright © 2003-2007 Magic-Project. All Rights Reserved.