de.hattrickorganizer.gui.transferscout
Class PlayerConverter

java.lang.Object
  extended by de.hattrickorganizer.gui.transferscout.PlayerConverter

public class PlayerConverter
extends java.lang.Object

Parses a player out of a text copied from HT. Tries also to give error informations but this may be wrong!

Author:
Marco Senn

Constructor Summary
PlayerConverter()
          We prepare our skill and specialities and sort them
 
Method Summary
 Player build(java.lang.String text)
          Parses the copied text and returns a Player Object
static java.lang.String getDeadlineString(java.lang.String tmp)
           
 int getError()
          Returns possible error.
static int getPrice(java.lang.String bid, java.lang.String curbid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerConverter

public PlayerConverter()
We prepare our skill and specialities and sort them

Method Detail

getError

public final int getError()
Returns possible error. If error is nonzero, there was a problem.

Returns:
Returns possible error

build

public final Player build(java.lang.String text)
                   throws java.lang.Exception
Parses the copied text and returns a Player Object

Parameters:
text - the copied text from HT site
Returns:
Player a Player object
Throws:
java.lang.Exception - Throws exception on some parse errors

getPrice

public static int getPrice(java.lang.String bid,
                           java.lang.String curbid)

getDeadlineString

public static java.lang.String getDeadlineString(java.lang.String tmp)