Class AppendTextActionPersistence

  • All Implemented Interfaces:
    ilusr.persistencelib.configuration.IXmlConfigurationObject, ilusr.persistencelib.configuration.PersistXml

    public class AppendTextActionPersistence
    extends ActionPersistenceObject
    Author:
    Jeff Riggle Creates an XML node for the Append Text action. The current xml should look like this:
     
     <Action type="AppendText">
     	<Parameters>
    		<AppendText>Text to append</AppendText>
     	</Parameters>
     </Action>
     
     
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addParameter​(ilusr.persistencelib.configuration.XmlConfigurationObject parameter)  
      String appendText()  
      void appendText​(String text)  
      protected void clearParameters()
      Removes all parameters from the parameters section.
      void convertFromPersistence​(ilusr.persistencelib.configuration.XmlConfigurationObject obj)  
      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 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
    • Method Detail

      • appendText

        public void appendText​(String text)
        Parameters:
        text - The text that should be appened with this action.
      • appendText

        public String appendText()
        Returns:
        The String for the append text action.
      • convertFromPersistence

        public void convertFromPersistence​(ilusr.persistencelib.configuration.XmlConfigurationObject obj)
      • 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.