Package ca.phon.query.db.xml
Class XMLScript
java.lang.Object
ca.phon.query.db.xml.XMLScript
- All Implemented Interfaces:
Script
,JAXBWrapper<ScriptType>
An XML-based implementation of
Script
.-
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.Get the JAXB element associated with this object.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
-
getXMLObject
Get the JAXB element associated with this object.- Specified by:
getXMLObject
in interfaceJAXBWrapper<ScriptType>
- Returns:
-
getSource
Description copied from interface:Script
Gets the source code for this script. -
setUrl
Description copied from interface:Script
Set url for script. This may be used as an alternative to setSource -
getUrl
Description copied from interface:Script
Get url for script. May benull
-
setSource
Description copied from interface:Script
Sets the source code for this script. -
getParameters
Description copied from interface:Script
Gets the parameters used in this script.- Specified by:
getParameters
in interfaceScript
- Returns:
- the map containing parameters (key = param name, value = param value)
-
setParameters
Description copied from interface:Script
Sets the parameters used in this script.- Specified by:
setParameters
in interfaceScript
- Parameters:
params
- the map containing parameters (key = param name, value = param value)
-
getMimeType
Description copied from interface:Script
Gets the MIME-type for this script.- Specified by:
getMimeType
in interfaceScript
- Returns:
- the MIME-type
-
setMimeType
Description copied from interface:Script
Sets the MIME-type for this script.- Specified by:
setMimeType
in interfaceScript
-