Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013

ag.ion.noa.internal.script
Class ScriptProvider

java.lang.Object
  extended by ag.ion.noa.internal.script.ScriptProvider
All Implemented Interfaces:
IScriptProvider

public class ScriptProvider
extends java.lang.Object
implements IScriptProvider

Provider for scripts.


Field Summary
 
Fields inherited from interface ag.ion.noa.script.IScriptProvider
TYPE_BASIC, TYPE_BEAN_SHELL, TYPE_JAVA, TYPE_JAVA_SCRIPT, TYPE_PYTHON
 
Constructor Summary
ScriptProvider(com.sun.star.script.provider.XScriptProvider xScriptProvider)
          Constructs new ScriptProvider.
 
Method Summary
 IScript getScript(java.lang.String type, java.lang.String library, java.lang.String module, java.lang.String name)
          Returns the script with the submitted type, library, module, and name, or null if not found.
 IScript[] getScripts()
          Returns all scripts.
 IScript[] getScripts(java.lang.String library)
          Returns all scripts of the library with the submitted name.
 IScript[] getScripts(java.lang.String type, java.lang.String library)
          Returns all scripts of the submitted type and library with the submitted name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptProvider

public ScriptProvider(com.sun.star.script.provider.XScriptProvider xScriptProvider)
Constructs new ScriptProvider.

Parameters:
xScriptProvider - OpenOffice.org XScriptProvider interface to be used
Method Detail

getScript

public IScript getScript(java.lang.String type,
                         java.lang.String library,
                         java.lang.String module,
                         java.lang.String name)
Returns the script with the submitted type, library, module, and name, or null if not found.

Specified by:
getScript in interface IScriptProvider
Parameters:
type - type of the scripts
library - name of the library
module - name of the module, or null if not TYPE_BASIC
name - name of the script
Returns:
the script with the submitted type, library, module, and name, or null
See Also:
IScriptProvider.TYPE_BASIC, IScriptProvider.TYPE_BEAN_SHELL, IScriptProvider.TYPE_JAVA, IScriptProvider.TYPE_JAVA_SCRIPT, IScriptProvider.TYPE_PYTHON

getScripts

public IScript[] getScripts(java.lang.String type,
                            java.lang.String library)
Returns all scripts of the submitted type and library with the submitted name.

Specified by:
getScripts in interface IScriptProvider
Parameters:
type - type of the scripts
library - name of the library
Returns:
all scripts of the submitted type and library with the submitted name
See Also:
IScriptProvider.TYPE_BASIC, IScriptProvider.TYPE_BEAN_SHELL, IScriptProvider.TYPE_JAVA, IScriptProvider.TYPE_JAVA_SCRIPT, IScriptProvider.TYPE_PYTHON

getScripts

public IScript[] getScripts(java.lang.String library)
Returns all scripts of the library with the submitted name.

Specified by:
getScripts in interface IScriptProvider
Parameters:
library - name of the library
Returns:
all scripts of the library with the submitted name

getScripts

public IScript[] getScripts()
Returns all scripts.

Specified by:
getScripts in interface IScriptProvider
Returns:
all scripts

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013