net.sf.freecol.common.model
Class ExportData

java.lang.Object
  extended by net.sf.freecol.common.model.FreeColObject
      extended by net.sf.freecol.common.model.ExportData

public class ExportData
extends FreeColObject

Objects of this class hold the export data for a particular type of goods.


Field Summary
 
Fields inherited from class net.sf.freecol.common.model.FreeColObject
ID_ATTRIBUTE_TAG
 
Constructor Summary
ExportData()
          Package constructor: This class is only supposed to be constructed by Colony.
ExportData(GoodsType goodsType)
          Creates a new ExportData instance.
ExportData(GoodsType goodsType, boolean exported, int exportLevel)
          Creates a new ExportData instance.
ExportData(GoodsType goodsType, boolean exported, int lowLevel, int highLevel, int exportLevel)
          Creates a new ExportData instance.
ExportData(GoodsType goodsType, ExportData template)
          Creates a new ExportData instance.
 
Method Summary
 int getExportLevel()
          Get the ExportLevel value.
 int getHighLevel()
          Get the HighLevel value.
 int getLowLevel()
          Get the LowLevel value.
static java.lang.String getXMLElementTagName()
          Returns the tag name of the root element representing this object.
 boolean isExported()
          Get the Export value.
 void setExported(boolean newExport)
          Set the Export value.
 void setExportLevel(int newExportLevel)
          Set the ExportLevel value.
 void setHighLevel(int newHighLevel)
          Set the HighLevel value.
 void setLowLevel(int newLowLevel)
          Set the LowLevel value.
 
Methods inherited from class net.sf.freecol.common.model.FreeColObject
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAttribute, getAttribute, getAttribute, getAttribute, getId, getPropertyChangeListeners, getPropertyChangeListeners, hasAbility, hasAttribute, hasListeners, readFromXML, readFromXMLElement, removePropertyChangeListener, removePropertyChangeListener, toXML, toXML, toXML, toXMLElement, toXMLElement, toXMLElement, toXMLElement, toXMLElementPartial, writeAttribute, writeFreeColGameObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportData

public ExportData()
Package constructor: This class is only supposed to be constructed by Colony.


ExportData

public ExportData(GoodsType goodsType)
Creates a new ExportData instance.

Parameters:
goodsType - a GoodsType value

ExportData

public ExportData(GoodsType goodsType,
                  boolean exported,
                  int lowLevel,
                  int highLevel,
                  int exportLevel)
Creates a new ExportData instance.

Parameters:
goodsType - a GoodsType value
exported - a boolean value
lowLevel - an int value
highLevel - an int value
exportLevel - an int value

ExportData

public ExportData(GoodsType goodsType,
                  boolean exported,
                  int exportLevel)
Creates a new ExportData instance.

Parameters:
goodsType - a GoodsType value
exported - a boolean value
exportLevel - an int value

ExportData

public ExportData(GoodsType goodsType,
                  ExportData template)
Creates a new ExportData instance.

Parameters:
goodsType - a GoodsType value
template - an ExportData value
Method Detail

getHighLevel

public final int getHighLevel()
Get the HighLevel value.

Returns:
an int value

setHighLevel

public final void setHighLevel(int newHighLevel)
Set the HighLevel value.

Parameters:
newHighLevel - The new HighLevel value.

getLowLevel

public final int getLowLevel()
Get the LowLevel value.

Returns:
an int value

setLowLevel

public final void setLowLevel(int newLowLevel)
Set the LowLevel value.

Parameters:
newLowLevel - The new LowLevel value.

getExportLevel

public final int getExportLevel()
Get the ExportLevel value.

Returns:
an int value

setExportLevel

public final void setExportLevel(int newExportLevel)
Set the ExportLevel value.

Parameters:
newExportLevel - The new ExportLevel value.

isExported

public final boolean isExported()
Get the Export value.

Returns:
a boolean value

setExported

public final void setExported(boolean newExport)
Set the Export value.

Parameters:
newExport - The new Export value.

getXMLElementTagName

public static java.lang.String getXMLElementTagName()
Returns the tag name of the root element representing this object.

Returns:
the tag name.