net.sf.magicproject.database
Class XmlDeckTranslator

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

public class XmlDeckTranslator
extends java.lang.Object

Since:
0.90
Author:
Fabrice Daugan

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

Constructor Detail

XmlDeckTranslator

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

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

convert

public java.lang.String convert(XmlParser.Node node,
                                java.lang.String cardName)
Return the converted card name.

Parameters:
node - the node containing the regular expressions converting the given string.
cardName - the card name to translate.
Returns:
the converted card name.


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