net.sf.magicproject.xml.test
Class Abilityis

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

public class Abilityis
extends java.lang.Object
implements XmlToMDB

Test if the ability owning this test is equal to the requested name. This test may be used in the restriction test of givemana action.

Since:
0.86
Author:
Fabrice Daugan

Constructor Summary
Abilityis()
           
 
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] ability name + '\0' [...]
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Abilityis

public Abilityis()
Method Detail

buildMdb

public final 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.


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