net.sf.magicproject.xml.test
Class And

java.lang.Object
  extended by net.sf.magicproject.xml.test.And
All Implemented Interfaces:
XmlToMDB

public final class And
extends java.lang.Object
implements XmlToMDB

Since:
0.82
Author:
Fabrice Daugan

Constructor Summary
And()
           
 
Method Summary
 int buildMdb(XmlParser.Node node, java.io.OutputStream out)
          Write the contained test of the specified node
Structure of stream : Data[size] idTest [1] first test [...]
static XmlParser.Node createAndNode(XmlParser.Node parent, XmlParser.Node left, XmlParser.Node right)
          Create and return a "And" node if both nodes are not null.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

And

public And()
Method Detail

buildMdb

public int buildMdb(XmlParser.Node node,
                    java.io.OutputStream out)
             throws java.io.IOException
Write the contained test of the specified node

Specified by:
buildMdb in interface XmlToMDB
Parameters:
node - the XML test container structure
out - outputstream where the card structure will be saved
Returns:
the amount of written action, so return alway ZERO.
Throws:
java.io.IOException - error while writting.

createAndNode

public static XmlParser.Node createAndNode(XmlParser.Node parent,
                                           XmlParser.Node left,
                                           XmlParser.Node right)
Create and return a "And" node if both nodes are not null.

Parameters:
parent - parent of the returned new node
left - the left expression.
right - the right expression.
Returns:
a "And" node if both nodes are not null.


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