chesspresso.game
Class GameHeaderModel

java.lang.Object
  |
  +--chesspresso.game.GameHeaderModel

public class GameHeaderModel
extends java.lang.Object

Version:
$Revision: 1.1 $
Author:
Bernhard Seybold

Field Summary
static int MODE_ALL_TAGS
           
static int MODE_SEVEN_TAG_ROASTER
           
static int MODE_STANDARD_TAGS
           
 
Constructor Summary
GameHeaderModel()
           
GameHeaderModel(java.io.DataInput in, int mode)
           
 
Method Summary
 java.lang.String getBlack()
           
 int getBlackElo()
           
 java.lang.String getBlackEloStr()
           
 java.lang.String getDate()
           
 java.lang.String getECO()
           
 java.lang.String getEvent()
           
 java.lang.String getEventDate()
           
 long getLong()
           
 int getResult()
           
 java.lang.String getResultStr()
           
 java.lang.String getRound()
           
 java.lang.String getSite()
           
 java.lang.String getTag(java.lang.String tagName)
           
 java.lang.String[] getTags()
           
 java.lang.String getWhite()
           
 int getWhiteElo()
           
 java.lang.String getWhiteEloStr()
           
 boolean isSimilar(GameHeaderModel headerModel)
           
 void load(java.io.DataInput in, int mode)
           
 void save(java.io.DataOutput out, int mode)
           
 void setLong(long l)
           
 void setTag(java.lang.String tagName, java.lang.String tagValue)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MODE_SEVEN_TAG_ROASTER

public static final int MODE_SEVEN_TAG_ROASTER
See Also:
Constant Field Values

MODE_STANDARD_TAGS

public static final int MODE_STANDARD_TAGS
See Also:
Constant Field Values

MODE_ALL_TAGS

public static final int MODE_ALL_TAGS
See Also:
Constant Field Values
Constructor Detail

GameHeaderModel

public GameHeaderModel()

GameHeaderModel

public GameHeaderModel(java.io.DataInput in,
                       int mode)
                throws java.io.IOException
Method Detail

getLong

public long getLong()

setLong

public void setLong(long l)

getTag

public java.lang.String getTag(java.lang.String tagName)

setTag

public void setTag(java.lang.String tagName,
                   java.lang.String tagValue)

getTags

public java.lang.String[] getTags()

getEvent

public java.lang.String getEvent()

getSite

public java.lang.String getSite()

getDate

public java.lang.String getDate()

getRound

public java.lang.String getRound()

getWhite

public java.lang.String getWhite()

getBlack

public java.lang.String getBlack()

getResultStr

public java.lang.String getResultStr()

getWhiteEloStr

public java.lang.String getWhiteEloStr()

getBlackEloStr

public java.lang.String getBlackEloStr()

getEventDate

public java.lang.String getEventDate()

getECO

public java.lang.String getECO()

getResult

public int getResult()

getWhiteElo

public int getWhiteElo()

getBlackElo

public int getBlackElo()

load

public void load(java.io.DataInput in,
                 int mode)
          throws java.io.IOException
java.io.IOException

save

public void save(java.io.DataOutput out,
                 int mode)
          throws java.io.IOException
java.io.IOException

isSimilar

public boolean isSimilar(GameHeaderModel headerModel)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object