XmlPlayer

public class XmlPlayer

Java class for Player complex type.

The following schema fragment specifies the expected content contained within this class.

<complexType name="Player">
  <complexContent>
    <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      <sequence>
        <element name="ID" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <sequence maxOccurs="unbounded" minOccurs="0">
          <element name="unit" type="{}Unit"/>
        </sequence>
        <sequence maxOccurs="unbounded" minOccurs="0">
          <element name="upgrade" type="{http://www.w3.org/2001/XMLSchema}int"/>
        </sequence>
        <sequence maxOccurs="unbounded" minOccurs="0">
          <element name="template" type="{}Template"/>
        </sequence>
        <sequence maxOccurs="unbounded" minOccurs="0">
          <element name="resourceAmount" type="{}ResourceQuantity"/>
        </sequence>
        <element name="supply" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="supplyCap" type="{http://www.w3.org/2001/XMLSchema}int"/>
      </sequence>
    </restriction>
  </complexContent>
</complexType>

Fields

id

protected int id

resourceAmount

protected List<XmlResourceQuantity> resourceAmount

supply

protected int supply

supplyCap

protected int supplyCap

template

protected List<XmlTemplate> template

unit

protected List<XmlUnit> unit

upgrade

protected List<Integer> upgrade

Methods

getID

public int getID()

Gets the value of the id property.

getResourceAmount

public List<XmlResourceQuantity> getResourceAmount()

Gets the value of the resourceAmount property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the resourceAmount property.

For example, to add a new item, do as follows:

getResourceAmount().add(newItem);

Objects of the following type(s) are allowed in the list XmlResourceQuantity

getSupply

public int getSupply()

Gets the value of the supply property.

getSupplyCap

public int getSupplyCap()

Gets the value of the supplyCap property.

getTemplate

public List<XmlTemplate> getTemplate()

Gets the value of the template property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the template property.

For example, to add a new item, do as follows:

getTemplate().add(newItem);

Objects of the following type(s) are allowed in the list XmlTemplate

getUnit

public List<XmlUnit> getUnit()

Gets the value of the unit property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the unit property.

For example, to add a new item, do as follows:

getUnit().add(newItem);

Objects of the following type(s) are allowed in the list XmlUnit

getUpgrade

public List<Integer> getUpgrade()

Gets the value of the upgrade property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the upgrade property.

For example, to add a new item, do as follows:

getUpgrade().add(newItem);

Objects of the following type(s) are allowed in the list Integer

setID

public void setID(int value)

Sets the value of the id property.

setSupply

public void setSupply(int value)

Sets the value of the supply property.

setSupplyCap

public void setSupplyCap(int value)

Sets the value of the supplyCap property.