public class GetNationSummaryMessage extends DOMMessage
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
playerId
The identifier of the player to summarize.
|
private NationSummary |
summary
The summary.
|
document, logger
Constructor and Description |
---|
GetNationSummaryMessage(org.w3c.dom.Element element)
Create a new
GetNationSummaryMessage from a
supplied element. |
GetNationSummaryMessage(Player player)
Create a new
GetNationSummaryMessage for the
specified player. |
Modifier and Type | Method and Description |
---|---|
NationSummary |
getNationSummary()
Client side helper to get the summary.
|
static java.lang.String |
getXMLElementTagName()
The tag name of the root element representing this object.
|
org.w3c.dom.Element |
handle(FreeColServer server,
Connection connection)
Handle a "getNationSummary"-message.
|
org.w3c.dom.Element |
toXMLElement()
Convert this GetNationSummaryMessage to XML.
|
clientError, collapseElements, createError, createError, createMessage, createMessage, createNewDocument, createNewRootElement, elementToString, getAttribute, getChildElement, getDocument, getFreeColProtocolVersion, getType, hasAttribute, insertAsRoot, isType, setAttribute, setAttribute, toString
private final java.lang.String playerId
private NationSummary summary
public GetNationSummaryMessage(Player player)
GetNationSummaryMessage
for the
specified player.player
- The Player
to summarize.public GetNationSummaryMessage(org.w3c.dom.Element element)
GetNationSummaryMessage
from a
supplied element.element
- The Element
to use to create the message.public NationSummary getNationSummary()
public org.w3c.dom.Element handle(FreeColServer server, Connection connection)
server
- The FreeColServer
handling the message.connection
- The Connection
message was received on.Element
on failure.public org.w3c.dom.Element toXMLElement()
toXMLElement
in class DOMMessage
public static java.lang.String getXMLElementTagName()