org.nuxeo.ecm.shell.commands.scripting
Class ScriptingCommandDescriptor
java.lang.Object
org.nuxeo.ecm.shell.commands.scripting.ScriptingCommandDescriptor
- All Implemented Interfaces:
- Comparable<CommandDescriptor>, CommandDescriptor
public class ScriptingCommandDescriptor
- extends Object
- implements CommandDescriptor
- Author:
- Bogdan Stefanescu
ScriptingCommandDescriptor
public ScriptingCommandDescriptor(File file)
getAliases
public 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 String getDescription()
- Specified by:
getDescription
in interface CommandDescriptor
getHelp
public String getHelp()
- Specified by:
getHelp
in interface CommandDescriptor
getName
public 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 Exception
- Specified by:
newInstance
in interface CommandDescriptor
- Throws:
Exception
compareTo
public int compareTo(CommandDescriptor o)
- Specified by:
compareTo
in interface Comparable<CommandDescriptor>
toString
public String toString()
- Overrides:
toString
in class Object
load
public void load()
getScriptingCommand
public ScriptingCommand getScriptingCommand()
throws Exception
- Throws:
Exception
compileScript
public static CompiledScript compileScript(ScriptEngine engine,
File file)
throws ScriptException
- Throws:
ScriptException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.