net.sf.freecol.common.option
Class FileOption
java.lang.Object
net.sf.freecol.common.model.FreeColObject
net.sf.freecol.common.option.AbstractOption
net.sf.freecol.common.option.FileOption
- All Implemented Interfaces:
- Option
public class FileOption
- extends AbstractOption
Represents an option for specifying a File
.
Constructor Summary |
FileOption(javax.xml.stream.XMLStreamReader in)
Creates a new IntegerOption . |
Method Summary |
java.io.File |
getValue()
Gets the current value of this FileOption . |
static java.lang.String |
getXMLElementTagName()
Gets the tag name of the root element representing this object. |
void |
setValue(java.io.File value)
Sets the value of this FileOption . |
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, wait, wait, wait |
FileOption
public FileOption(javax.xml.stream.XMLStreamReader in)
throws javax.xml.stream.XMLStreamException
- Creates a new
IntegerOption
.
- Parameters:
in
- The XMLStreamReader
containing the data.
- Throws:
javax.xml.stream.XMLStreamException
getValue
public java.io.File getValue()
- Gets the current value of this
FileOption
.
- Returns:
- The value using
null
for marking no value.
setValue
public void setValue(java.io.File value)
- Sets the value of this
FileOption
.
- Parameters:
value
- The value to be set.
getXMLElementTagName
public static java.lang.String getXMLElementTagName()
- Gets the tag name of the root element representing this object.
- Returns:
- "booleanOption".