org.nuxeo.ecm.shell.commands.scripting
Class ScriptingCommandDescriptor
java.lang.Object
org.nuxeo.ecm.shell.commands.scripting.ScriptingCommandDescriptor
- All Implemented Interfaces:
- java.lang.Comparable<CommandDescriptor>, CommandDescriptor
public class ScriptingCommandDescriptor
- extends java.lang.Object
- implements CommandDescriptor
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ScriptingCommandDescriptor
public ScriptingCommandDescriptor(java.io.File file)
getAliases
public java.lang.String[] getAliases()
- Specified by:
getAliases
in interface CommandDescriptor
getOptions
public CommandOption[] getOptions()
- Specified by:
getOptions
in interface CommandDescriptor
getArguments
public CommandParameter[] getArguments()
- Specified by:
getArguments
in interface CommandDescriptor
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface CommandDescriptor
getHelp
public java.lang.String getHelp()
- Specified by:
getHelp
in interface CommandDescriptor
getName
public java.lang.String getName()
- Specified by:
getName
in interface CommandDescriptor
hasArguments
public boolean hasArguments()
- Specified by:
hasArguments
in interface CommandDescriptor
hasOptions
public boolean hasOptions()
- Specified by:
hasOptions
in interface CommandDescriptor
isDynamicScript
public boolean isDynamicScript()
- Specified by:
isDynamicScript
in interface CommandDescriptor
newInstance
public Command newInstance()
throws java.lang.Exception
- Specified by:
newInstance
in interface CommandDescriptor
- Throws:
java.lang.Exception
compareTo
public int compareTo(CommandDescriptor o)
- Specified by:
compareTo
in interface java.lang.Comparable<CommandDescriptor>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
load
public void load()
getScriptingCommand
public ScriptingCommand getScriptingCommand()
throws java.lang.Exception
- Throws:
java.lang.Exception
compileScript
public static javax.script.CompiledScript compileScript(javax.script.ScriptEngine engine,
java.io.File file)
throws javax.script.ScriptException
- Throws:
javax.script.ScriptException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.