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 Summary
Modifier and TypeMethodDescriptionGets the MIME-type for this script.Gets the parameters used in this script.Gets the source code for this script.getUrl()
Get url for script.void
setMimeType
(String mimeType) Sets the MIME-type for this script.void
setParameters
(Map<String, String> params) Sets the parameters used in this script.void
Sets the source code for this script.void
Set url for script.
-
Method Details
-
getSource
-
setSource
Sets the source code for this script.- Parameters:
source
- the source code
-
setUrl
Set url for script. This may be used as an alternative to setSource- Parameters:
url
-library
- may benull
-
getUrl
-
getParameters
-
setParameters
-
getMimeType
-
setMimeType
Sets the MIME-type for this script.- Parameters:
source
- the MIME-type
-