|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.common.model.TradeRouteStop
public class TradeRouteStop
| Field Summary | |
|---|---|
private java.util.List<AbstractGoods> |
goodsToLoad
The AbstractGoods to load in this Location. |
private java.util.List<AbstractGoods> |
goodsToUnload
The AbstractGoods to unload in this Location. |
private Location |
location
|
private boolean |
modified
Whether the stop has been modified. |
| Constructor Summary | |
|---|---|
TradeRouteStop(Location location)
Creates a new TradeRouteStop instance. |
|
| Method Summary | |
|---|---|
java.util.List<AbstractGoods> |
getGoodsToLoad()
Get the GoodsToLoad value. |
java.util.List<AbstractGoods> |
getGoodsToUnload()
Get the GoodsToUnload value. |
Location |
getLocation()
Get the Location value. |
static java.lang.String |
getXMLElementTagName()
Returns the tag name of the root element representing this object. |
boolean |
isModified()
Get the Modified value. |
protected void |
readFromXMLImpl(javax.xml.stream.XMLStreamReader in)
Initialize this object from an XML-representation of this object. |
protected void |
readFromXMLImpl(javax.xml.stream.XMLStreamReader in,
Game game)
Initialize this object from an XML-representation of this object. |
void |
setGoodsToLoad(java.util.List<AbstractGoods> newGoodsToLoad)
Set the GoodsToLoad value. |
void |
setGoodsToUnload(java.util.List<AbstractGoods> newGoodsToUnload)
Set the GoodsToUnload value. |
void |
setLocation(Location newLocation)
Set the Location value. |
void |
setModified(boolean newModified)
Set the Modified value. |
java.lang.String |
toString()
|
void |
toXMLImpl(javax.xml.stream.XMLStreamWriter out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Location location
private boolean modified
private java.util.List<AbstractGoods> goodsToUnload
private java.util.List<AbstractGoods> goodsToLoad
| Constructor Detail |
|---|
public TradeRouteStop(Location location)
TradeRouteStop instance.
location - a Location value| Method Detail |
|---|
public final java.util.List<AbstractGoods> getGoodsToLoad()
GoodsToLoad value.
List valuepublic final void setGoodsToLoad(java.util.List<AbstractGoods> newGoodsToLoad)
GoodsToLoad value.
newGoodsToLoad - The new GoodsToLoad value.public final java.util.List<AbstractGoods> getGoodsToUnload()
GoodsToUnload value.
List valuepublic final void setGoodsToUnload(java.util.List<AbstractGoods> newGoodsToUnload)
GoodsToUnload value.
newGoodsToUnload - The new GoodsToUnload value.public final boolean isModified()
Modified value.
boolean valuepublic final void setModified(boolean newModified)
Modified value.
newModified - The new Modified value.public final Location getLocation()
Location value.
Location valuepublic void setLocation(Location newLocation)
Location value.
newLocation - a Location valuepublic java.lang.String toString()
toString in class java.lang.Object
public void toXMLImpl(javax.xml.stream.XMLStreamWriter out)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected void readFromXMLImpl(javax.xml.stream.XMLStreamReader in)
throws javax.xml.stream.XMLStreamException
in - The input stream with the XML.
javax.xml.stream.XMLStreamException - is thrown if something goes wrong.
protected void readFromXMLImpl(javax.xml.stream.XMLStreamReader in,
Game game)
throws javax.xml.stream.XMLStreamException
in - The input stream with the XML.
javax.xml.stream.XMLStreamException - is thrown if something goes wrong.public static java.lang.String getXMLElementTagName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||