net.sf.freecol.common.model
Class HistoryEvent

java.lang.Object
  extended by net.sf.freecol.common.model.FreeColObject
      extended by net.sf.freecol.common.model.HistoryEvent

public class HistoryEvent
extends FreeColObject


Nested Class Summary
static class HistoryEvent.Type
           
 
Field Summary
 
Fields inherited from class net.sf.freecol.common.model.FreeColObject
ID_ATTRIBUTE_TAG
 
Constructor Summary
HistoryEvent()
           
HistoryEvent(int turn, HistoryEvent.Type type, java.lang.String... strings)
           
 
Method Summary
 java.lang.String[] getStrings()
          Get the Strings value.
 int getTurn()
          Get the int value.
 HistoryEvent.Type getType()
          Get the Type value.
static java.lang.String getXMLElementTagName()
          Returns the tag name of the root element representing this object.
 void setStrings(java.lang.String[] newStrings)
          Set the Strings value.
 void setTurn(int newInt)
          Set the int value.
 void setType(HistoryEvent.Type newType)
          Set the Type value.
 java.lang.String toString()
           
 
Methods inherited from class net.sf.freecol.common.model.FreeColObject
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAttribute, getAttribute, getAttribute, getAttribute, getId, getPropertyChangeListeners, getPropertyChangeListeners, hasAbility, hasAttribute, hasListeners, readFromXML, readFromXMLElement, removePropertyChangeListener, removePropertyChangeListener, toXML, toXML, toXML, toXMLElement, toXMLElement, toXMLElement, toXMLElement, toXMLElementPartial, writeAttribute, writeFreeColGameObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HistoryEvent

public HistoryEvent()

HistoryEvent

public HistoryEvent(int turn,
                    HistoryEvent.Type type,
                    java.lang.String... strings)
Method Detail

getTurn

public final int getTurn()
Get the int value.

Returns:
a int value

setTurn

public final void setTurn(int newInt)
Set the int value.

Parameters:
newInt - The new int value.

getType

public final HistoryEvent.Type getType()
Get the Type value.

Returns:
a Type value

setType

public final void setType(HistoryEvent.Type newType)
Set the Type value.

Parameters:
newType - The new Type value.

getStrings

public final java.lang.String[] getStrings()
Get the Strings value.

Returns:
a String[] value

setStrings

public final void setStrings(java.lang.String[] newStrings)
Set the Strings value.

Parameters:
newStrings - The new Strings value.

toString

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

getXMLElementTagName

public static java.lang.String getXMLElementTagName()
Returns the tag name of the root element representing this object.

Returns:
the tag name.