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.voidsetMimeType(String mimeType) Sets the MIME-type for this script.voidsetParameters(Map<String, String> params) Sets the parameters used in this script.voidSets the source code for this script.voidSet 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
-