Module ilusr.textadventurelib
Package textadventurelib.persistence
Class FinishActionPersistenceObject
- java.lang.Object
-
- ilusr.persistencelib.configuration.XmlConfigurationObject
-
- textadventurelib.persistence.ActionPersistenceObject
-
- textadventurelib.persistence.FinishActionPersistenceObject
-
- All Implemented Interfaces:
ilusr.persistencelib.configuration.IXmlConfigurationObject
,ilusr.persistencelib.configuration.PersistXml
public class FinishActionPersistenceObject extends ActionPersistenceObject
- Author:
- Jeff Riggle Creates an action that will finish the game.
-
-
Constructor Summary
Constructors Constructor Description FinishActionPersistenceObject()
Base Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addParameter(ilusr.persistencelib.configuration.XmlConfigurationObject parameter)
protected void
clearParameters()
Removes all parameters from the parameters section.IAction
convertToAction()
protected List<ilusr.persistencelib.configuration.XmlConfigurationObject>
parameters()
void
prepareXml()
This must be called before saving the xml otherwise this object will not be saved correctly to the xml file.protected void
removeParameter(ilusr.persistencelib.configuration.XmlConfigurationObject parameter)
protected void
type(String type)
-
Methods inherited from class textadventurelib.persistence.ActionPersistenceObject
type
-
Methods inherited from class ilusr.persistencelib.configuration.XmlConfigurationObject
addChild, addChildren, addConfigurationProperties, addConfigurationProperty, children, clearChildren, clearConfigurationProperties, configurationProperties, getChildObject, getChildValue, getValueType, load, name, name, persist, removeChild, removeChildren, removeConfigurationProperties, removeConfigurationProperty, value, value
-
-
-
-
Constructor Detail
-
FinishActionPersistenceObject
public FinishActionPersistenceObject() throws TransformerConfigurationException, ParserConfigurationException
Base Ctor.
-
-
Method Detail
-
convertToAction
public IAction convertToAction()
- Specified by:
convertToAction
in classActionPersistenceObject
-
type
protected void type(String type)
- Parameters:
type
- The new type of action.
-
addParameter
protected void addParameter(ilusr.persistencelib.configuration.XmlConfigurationObject parameter)
- Parameters:
parameter
- A list of @see XmlConfigurationObject to add under the parameters section.
-
removeParameter
protected void removeParameter(ilusr.persistencelib.configuration.XmlConfigurationObject parameter)
- Parameters:
parameter
- A list of @see XmlConfigurationObject to remove from the parameters section.
-
clearParameters
protected void clearParameters()
Removes all parameters from the parameters section.
-
parameters
protected List<ilusr.persistencelib.configuration.XmlConfigurationObject> parameters()
- Returns:
- A list of @see XmlConfigurationObject representing the parameters section of the xml.
-
prepareXml
public void prepareXml() throws TransformerConfigurationException, ParserConfigurationException
This must be called before saving the xml otherwise this object will not be saved correctly to the xml file.
-
-