Interface Script

All Known Implementing Classes:
XMLScript

public interface Script
An interface that defines a Phon script. A script has source code and a set of parameters.
  • Method Details

    • getSource

      String getSource()
      Gets the source code for this script.
      Returns:
      the source code
    • setSource

      void setSource(String source)
      Sets the source code for this script.
      Parameters:
      source - the source code
    • setUrl

      void setUrl(ScriptURL scriptUrl)
      Set url for script. This may be used as an alternative to setSource
      Parameters:
      url -
      library - may be null
    • getUrl

      ScriptURL getUrl()
      Get url for script. May be null
      Returns:
      url
    • getParameters

      Map<String,String> getParameters()
      Gets the parameters used in this script.
      Returns:
      the map containing parameters (key = param name, value = param value)
    • setParameters

      void setParameters(Map<String,String> params)
      Sets the parameters used in this script.
      Parameters:
      params - the map containing parameters (key = param name, value = param value)
    • getMimeType

      String getMimeType()
      Gets the MIME-type for this script.
      Returns:
      the MIME-type
    • setMimeType

      void setMimeType(String mimeType)
      Sets the MIME-type for this script.
      Parameters:
      source - the MIME-type