|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.common.model.FreeColObject
net.sf.freecol.common.model.ExportData
public class ExportData
Objects of this class hold the export data for a particular type of goods.
| Field Summary | |
|---|---|
private boolean |
exported
Describe export here. |
private int |
exportLevel
Describe exportLevel here. |
private int |
highLevel
Describe highLevel here. |
private int |
lowLevel
Describe lowLevel here. |
| Fields inherited from class net.sf.freecol.common.model.FreeColObject |
|---|
ARRAY_SIZE, ID_ATTRIBUTE, ID_ATTRIBUTE_TAG, INFINITY, logger, NO_ID, PARTIAL_ATTRIBUTE, UNDEFINED, VALUE_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. |
protected void |
readFromXMLImpl(javax.xml.stream.XMLStreamReader in)
Initialize this object from an XML-representation of this object. |
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. |
protected void |
toXMLImpl(javax.xml.stream.XMLStreamWriter out)
This method writes an XML-representation of this object to the given stream. |
protected void |
writeAttributes(javax.xml.stream.XMLStreamWriter out)
Write the attributes of this object to a stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int highLevel
private int lowLevel
private int exportLevel
private boolean exported
| Constructor Detail |
|---|
public ExportData()
Colony.
public ExportData(GoodsType goodsType)
ExportData instance.
goodsType - a GoodsType value
public ExportData(GoodsType goodsType,
boolean exported,
int lowLevel,
int highLevel,
int exportLevel)
ExportData instance.
goodsType - a GoodsType valueexported - a boolean valuelowLevel - an int valuehighLevel - an int valueexportLevel - an int value
public ExportData(GoodsType goodsType,
boolean exported,
int exportLevel)
ExportData instance.
goodsType - a GoodsType valueexported - a boolean valueexportLevel - an int value
public ExportData(GoodsType goodsType,
ExportData template)
ExportData instance.
goodsType - a GoodsType valuetemplate - an ExportData value| Method Detail |
|---|
public final int getHighLevel()
HighLevel value.
int valuepublic final void setHighLevel(int newHighLevel)
HighLevel value.
newHighLevel - The new HighLevel value.public final int getLowLevel()
LowLevel value.
int valuepublic final void setLowLevel(int newLowLevel)
LowLevel value.
newLowLevel - The new LowLevel value.public final int getExportLevel()
ExportLevel value.
int valuepublic final void setExportLevel(int newExportLevel)
ExportLevel value.
newExportLevel - The new ExportLevel value.public final boolean isExported()
Export value.
boolean valuepublic final void setExported(boolean newExport)
Export value.
newExport - The new Export value.
protected void toXMLImpl(javax.xml.stream.XMLStreamWriter out)
throws javax.xml.stream.XMLStreamException
toXMLImpl in class FreeColObjectout - The target stream.
javax.xml.stream.XMLStreamException - if there are any problems writing
to the stream.
protected void writeAttributes(javax.xml.stream.XMLStreamWriter out)
throws javax.xml.stream.XMLStreamException
writeAttributes in class FreeColObjectout - The target stream.
javax.xml.stream.XMLStreamException - if there are any problems writing
to the stream.
protected void readFromXMLImpl(javax.xml.stream.XMLStreamReader in)
throws javax.xml.stream.XMLStreamException
readFromXMLImpl in class FreeColObjectin - The input stream with the XML.
javax.xml.stream.XMLStreamException - if a problem was encountered
during parsing.public static java.lang.String getXMLElementTagName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||