Package ca.phon.query.db
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
String getSource()Gets the source code for this script.- Returns:
- the source code
-
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
ScriptURL getUrl()Get url for script. May benull
- Returns:
- url
-
getParameters
Gets the parameters used in this script.- Returns:
- the map containing parameters (key = param name, value = param value)
-
setParameters
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
Sets the MIME-type for this script.- Parameters:
source
- the MIME-type
-