|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.common.model.FreeColObject
net.sf.freecol.common.model.HistoryEvent
public class HistoryEvent
| Nested Class Summary | |
|---|---|
static class |
HistoryEvent.Type
|
| Field Summary | |
|---|---|
private java.lang.String[] |
strings
The details of the event. |
private int |
turn
The turn in which the event took place |
private HistoryEvent.Type |
type
The type of event. |
| Fields inherited from class net.sf.freecol.common.model.FreeColObject |
|---|
ARRAY_SIZE, ID_ATTRIBUTE, ID_ATTRIBUTE_TAG, logger, PARTIAL_ATTRIBUTE |
| 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. |
protected void |
readFromXMLImpl(javax.xml.stream.XMLStreamReader in)
Initialize this object from an XML-representation of 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()
|
protected void |
toXMLImpl(javax.xml.stream.XMLStreamWriter out)
This method writes an XML-representation of this object to the given stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int turn
private HistoryEvent.Type type
private java.lang.String[] strings
| Constructor Detail |
|---|
public HistoryEvent()
public HistoryEvent(int turn,
HistoryEvent.Type type,
java.lang.String... strings)
| Method Detail |
|---|
public final int getTurn()
int value.
int valuepublic final void setTurn(int newInt)
int value.
newInt - The new int value.public final HistoryEvent.Type getType()
Type value.
Type valuepublic final void setType(HistoryEvent.Type newType)
Type value.
newType - The new Type value.public final java.lang.String[] getStrings()
Strings value.
String[] valuepublic final void setStrings(java.lang.String[] newStrings)
Strings value.
newStrings - The new Strings value.public java.lang.String toString()
toString in class java.lang.Object
protected void toXMLImpl(javax.xml.stream.XMLStreamWriter out)
throws javax.xml.stream.XMLStreamException
Player will
be added to that representation if showAll is
set to false.
toXMLImpl in class FreeColObjectout - The target stream.
javax.xml.stream.XMLStreamException - if there are any problems writing
to the stream.
protected void readFromXMLImpl(javax.xml.stream.XMLStreamReader in)
throws javax.xml.stream.XMLStreamException
readFromXMLImpl in class FreeColObjectin - The input stream with the XML.
javax.xml.stream.XMLStreamException - if a problem was encountered
during parsing.public static java.lang.String getXMLElementTagName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||