net.sf.magicproject.xml
Class XmlEvent

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

public final class XmlEvent
extends java.lang.Object

This class is mainly used to convert events described in a XML form to a binary form

Since:
0.80
Author:
Fabrice Daugan

Method Summary
static void buildMdbCanICast(XmlParser.Node node, java.io.OutputStream out)
           Structure of stream : Data[size] [super] idCard [Expression]
static void buildMdbPhase(XmlParser.Node node, java.io.OutputStream out)
           Structure of stream : Data[size] idZone [1] test [...]
static void buildMdbTriggered(XmlParser.Node node, java.io.OutputStream out)
           Structure of stream : Data[size] idEvent [1] idZone [1] test [...]
static XmlToMDB getEvent(java.lang.String eventName)
          Return the event writter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

buildMdbTriggered

public static void buildMdbTriggered(XmlParser.Node node,
                                     java.io.OutputStream out)
                              throws java.io.IOException

Parameters:
node - the XML event structure
out - outputstream where the card structure will be saved
Throws:
java.io.IOException - error during the writting.

buildMdbPhase

public static void buildMdbPhase(XmlParser.Node node,
                                 java.io.OutputStream out)
                          throws java.io.IOException

Parameters:
node - the XML event structure
out - outputstream where the card structure will be saved
Throws:
java.io.IOException - error during the writting.

buildMdbCanICast

public static void buildMdbCanICast(XmlParser.Node node,
                                    java.io.OutputStream out)
                             throws java.io.IOException

Parameters:
node - the XML event structure
out - outputstream where the card structure will be saved
Throws:
java.io.IOException - error during the writting.

getEvent

public static XmlToMDB getEvent(java.lang.String eventName)
Return the event writter.

Parameters:
eventName - the expression name
Returns:
the expression writter.


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