XmlTemplate

public abstract class XmlTemplate

Java class for Template complex type.

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

<complexType name="Template">
  <complexContent>
    <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      <sequence>
        <element name="ID" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="foodCost" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="goldCost" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="woodCost" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="timeCost" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
        <sequence maxOccurs="unbounded" minOccurs="0">
          <element name="upgradePrerequisite" type="{http://www.w3.org/2001/XMLSchema}int"/>
        </sequence>
        <sequence maxOccurs="unbounded" minOccurs="0">
          <element name="unitPrerequisite" type="{http://www.w3.org/2001/XMLSchema}int"/>
        </sequence>
      </sequence>
    </restriction>
  </complexContent>
</complexType>

Fields

foodCost

protected int foodCost

goldCost

protected int goldCost

id

protected int id

name

protected String name

timeCost

protected int timeCost

unitPrerequisite

protected List<Integer> unitPrerequisite

upgradePrerequisite

protected List<Integer> upgradePrerequisite

woodCost

protected int woodCost

Methods

getFoodCost

public int getFoodCost()

Gets the value of the foodCost property.

getGoldCost

public int getGoldCost()

Gets the value of the goldCost property.

getID

public int getID()

Gets the value of the id property.

getName

public String getName()

Gets the value of the name property.

Returns:possible object is String

getTimeCost

public int getTimeCost()

Gets the value of the timeCost property.

getUnitPrerequisite

public List<Integer> getUnitPrerequisite()

Gets the value of the unitPrerequisite 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 unitPrerequisite property.

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

getUnitPrerequisite().add(newItem);

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

getUpgradePrerequisite

public List<Integer> getUpgradePrerequisite()

Gets the value of the upgradePrerequisite 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 upgradePrerequisite property.

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

getUpgradePrerequisite().add(newItem);

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

getWoodCost

public int getWoodCost()

Gets the value of the woodCost property.

setFoodCost

public void setFoodCost(int value)

Sets the value of the foodCost property.

setGoldCost

public void setGoldCost(int value)

Sets the value of the goldCost property.

setID

public void setID(int value)

Sets the value of the id property.

setName

public void setName(String value)

Sets the value of the name property.

Parameters:
  • value – allowed object is String

setTimeCost

public void setTimeCost(int value)

Sets the value of the timeCost property.

setWoodCost

public void setWoodCost(int value)

Sets the value of the woodCost property.