XmlUnit

public class XmlUnit

Java class for Unit complex type.

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

<complexType name="Unit">
  <complexContent>
    <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      <all>
        <element name="ID" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="currentHealth" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="xPosition" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="yPosition" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="templateID" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="cargoType" type="{}ResourceType"/>
        <element name="cargoAmount" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="progressPrimitive" type="{}Action"/>
        <element name="progressAmount" type="{http://www.w3.org/2001/XMLSchema}int"/>
      </all>
    </restriction>
  </complexContent>
</complexType>

Fields

cargoAmount

protected int cargoAmount

cargoType

protected ResourceType cargoType

currentHealth

protected int currentHealth

id

protected int id

progressAmount

protected int progressAmount

progressPrimitive

protected XmlAction progressPrimitive

templateID

protected int templateID

xPosition

protected int xPosition

yPosition

protected int yPosition

Methods

getCargoAmount

public int getCargoAmount()

Gets the value of the cargoAmount property.

getCargoType

public ResourceType getCargoType()

Gets the value of the cargoType property.

Returns:possible object is String

getCurrentHealth

public int getCurrentHealth()

Gets the value of the currentHealth property.

getID

public int getID()

Gets the value of the id property.

getProgressAmount

public int getProgressAmount()

Gets the value of the progressAmount property.

getProgressPrimitive

public XmlAction getProgressPrimitive()

Gets the value of the progressPrimitive property.

Returns:possible object is XmlAction

getTemplateID

public int getTemplateID()

Gets the value of the templateID property.

getXPosition

public int getXPosition()

Gets the value of the xPosition property.

getYPosition

public int getYPosition()

Gets the value of the yPosition property.

setCargoAmount

public void setCargoAmount(int value)

Sets the value of the cargoAmount property.

setCargoType

public void setCargoType(ResourceType value)

Sets the value of the cargoType property.

Parameters:
  • value – allowed object is String

setCurrentHealth

public void setCurrentHealth(int value)

Sets the value of the currentHealth property.

setID

public void setID(int value)

Sets the value of the id property.

setProgressAmount

public void setProgressAmount(int value)

Sets the value of the progressAmount property.

setProgressPrimitive

public void setProgressPrimitive(XmlAction value)

Sets the value of the progressPrimitive property.

Parameters:

setTemplateID

public void setTemplateID(int value)

Sets the value of the templateID property.

setXPosition

public void setXPosition(int value)

Sets the value of the xPosition property.

setYPosition

public void setYPosition(int value)

Sets the value of the yPosition property.