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¶
resourceAmount¶
-
protected List<XmlResourceQuantity>
resourceAmount
¶
template¶
-
protected List<XmlTemplate>
template
¶
Methods¶
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
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