Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.shell.commands.scripting
Class ScriptingCommandDescriptor

java.lang.Object
  extended by org.nuxeo.ecm.shell.commands.scripting.ScriptingCommandDescriptor
All Implemented Interfaces:
Comparable<CommandDescriptor>, CommandDescriptor

public class ScriptingCommandDescriptor
extends Object
implements CommandDescriptor

Author:
Bogdan Stefanescu

Constructor Summary
ScriptingCommandDescriptor(File file)
           
 
Method Summary
 int compareTo(CommandDescriptor o)
           
static CompiledScript compileScript(ScriptEngine engine, File file)
           
 String[] getAliases()
           
 CommandParameter[] getArguments()
           
 String getDescription()
           
 String getHelp()
           
 String getName()
           
 CommandOption[] getOptions()
           
 ScriptingCommand getScriptingCommand()
           
 boolean hasArguments()
           
 boolean hasOptions()
           
 boolean isDynamicScript()
           
 void load()
           
 Command newInstance()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScriptingCommandDescriptor

public ScriptingCommandDescriptor(File file)
Method Detail

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

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.