net.sf.magicproject.xml.action
Class Choice

java.lang.Object
  extended by net.sf.magicproject.xml.action.Choice
All Implemented Interfaces:
XmlToMDB

public class Choice
extends java.lang.Object
implements XmlToMDB

Propose to choose within several valid actions list. If 'hop' attribute is specified and is 'true', cancel option would be available during the choice.

Since:
0.85
Author:
Fabrice Daugan

Constructor Summary
Choice()
           
 
Method Summary
 int buildMdb(XmlParser.Node node, java.io.OutputStream out)
           Structure of stream : Data[size] message [Msg] allow cancel [boolean] hop on cancel [Expression] action index [1] action is in effects [boolean] nb choices [1] size of choice #1 [int] size of choice #n [int] actions of choice #1 [Action[]] hop action value= SIGMA(i={2..n}, nb actions of choice i) [Expression] actions of choice #2 [Action[]] hop action value= SIGMA(i={m..n}, nb actions of choice i) [Expression]
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Choice

public Choice()
Method Detail

buildMdb

public int buildMdb(XmlParser.Node node,
                    java.io.OutputStream out)
             throws java.io.IOException

Specified by:
buildMdb in interface XmlToMDB
Parameters:
node - the XML action structure
out - outputstream where the card structure will be saved.
Returns:
the amount of written action in the output.
Throws:
java.io.IOException


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