|
|||||||||
| 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.option.AbstractOption<java.util.List<AbstractOption<T>>>
net.sf.freecol.common.option.ListOption<AbstractUnit>
net.sf.freecol.common.option.UnitListOption
public class UnitListOption
Represents an option where the valid choice is a list of AbstractUnits, e.g. the units of the REF.
| Field Summary |
|---|
| Fields inherited from class net.sf.freecol.common.option.AbstractOption |
|---|
isDefined |
| Fields inherited from class net.sf.freecol.common.model.FreeColObject |
|---|
ARRAY_SIZE, ID_ATTRIBUTE, ID_ATTRIBUTE_TAG, INFINITY, NO_ID, PARTIAL_ATTRIBUTE, UNDEFINED, VALUE_TAG |
| Constructor Summary | |
|---|---|
UnitListOption(Specification specification)
Creates a new UnitListOption. |
|
UnitListOption(java.lang.String id)
Creates a new UnitListOption. |
|
| Method Summary | |
|---|---|
static java.lang.String |
getXMLElementTagName()
Gets the tag name of the root element representing this object. |
protected void |
toXMLImpl(javax.xml.stream.XMLStreamWriter out)
This method writes an XML-representation of this object to the given stream. |
| Methods inherited from class net.sf.freecol.common.option.ListOption |
|---|
clone, getMaximumValue, getOptionValues, getTemplate, getValue, isNullValueOK, readFromXMLImpl, setMaximumValue, setTemplate, setValue, toXMLImpl |
| Methods inherited from class net.sf.freecol.common.option.AbstractOption |
|---|
generateChoices, getGroup, readAttributes, readOption, setGroup, setValue, setValues |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.freecol.common.option.Option |
|---|
getId, readFromXML, toString, toXML |
| Constructor Detail |
|---|
public UnitListOption(java.lang.String id)
UnitListOption.
id - The identifier for this option. This is used when the object
should be found in an OptionGroup.public UnitListOption(Specification specification)
UnitListOption.
specification - The specification this option belongs
to. May be null.| Method Detail |
|---|
protected void toXMLImpl(javax.xml.stream.XMLStreamWriter out)
throws javax.xml.stream.XMLStreamException
ListOption
toXMLImpl in class ListOption<AbstractUnit>out - The target stream.
javax.xml.stream.XMLStreamException - if there are any problems writing
to the stream.public static java.lang.String getXMLElementTagName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||