Class XMLScript

java.lang.Object
ca.phon.query.db.xml.XMLScript
All Implemented Interfaces:
Script, JAXBWrapper<ScriptType>

public class XMLScript extends Object implements Script, JAXBWrapper<ScriptType>
An XML-based implementation of Script.
  • Method Details

    • getXMLObject

      public ScriptType getXMLObject()
      Get the JAXB element associated with this object.
      Specified by:
      getXMLObject in interface JAXBWrapper<ScriptType>
      Returns:
    • getSource

      public String getSource()
      Description copied from interface: Script
      Gets the source code for this script.
      Specified by:
      getSource in interface Script
      Returns:
      the source code
    • setUrl

      public void setUrl(ScriptURL url)
      Description copied from interface: Script
      Set url for script. This may be used as an alternative to setSource
      Specified by:
      setUrl in interface Script
    • getUrl

      public ScriptURL getUrl()
      Description copied from interface: Script
      Get url for script. May be null
      Specified by:
      getUrl in interface Script
      Returns:
      url
    • setSource

      public void setSource(String source)
      Description copied from interface: Script
      Sets the source code for this script.
      Specified by:
      setSource in interface Script
      Parameters:
      source - the source code
    • getParameters

      public Map<String,String> getParameters()
      Description copied from interface: Script
      Gets the parameters used in this script.
      Specified by:
      getParameters in interface Script
      Returns:
      the map containing parameters (key = param name, value = param value)
    • setParameters

      public void setParameters(Map<String,String> params)
      Description copied from interface: Script
      Sets the parameters used in this script.
      Specified by:
      setParameters in interface Script
      Parameters:
      params - the map containing parameters (key = param name, value = param value)
    • getMimeType

      public String getMimeType()
      Description copied from interface: Script
      Gets the MIME-type for this script.
      Specified by:
      getMimeType in interface Script
      Returns:
      the MIME-type
    • setMimeType

      public void setMimeType(String mimeType)
      Description copied from interface: Script
      Sets the MIME-type for this script.
      Specified by:
      setMimeType in interface Script