net.sf.magicproject.xml
Class XmlDeckTranslator

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

public class XmlDeckTranslator
extends java.lang.Object

Since:
0.82
Author:
Fabrice Daugan

Constructor Summary
XmlDeckTranslator(java.lang.String tbsName)
          Constructor.
 
Method Summary
 java.lang.String convert(java.lang.String cardName)
          Return the translated card name of specified original card name.
 java.lang.String replace(XmlParser.Node node, java.lang.String cardName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDeckTranslator

public XmlDeckTranslator(java.lang.String tbsName)
                  throws org.xml.sax.SAXException,
                         java.io.IOException
Constructor.

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

convert

public java.lang.String convert(java.lang.String cardName)
Return the translated card name of specified original card name.

Parameters:
cardName - the name to translate.
Returns:
the translated card name

replace

public java.lang.String replace(XmlParser.Node node,
                                java.lang.String cardName)
Parameters:
node - the node containing the replacement expressions.
cardName - the unconverted card name.
Returns:
the converted name.


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