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:
java.lang.Comparable<CommandDescriptor>, CommandDescriptor

public class ScriptingCommandDescriptor
extends java.lang.Object
implements CommandDescriptor

Author:
Bogdan Stefanescu

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

Constructor Detail

ScriptingCommandDescriptor

public ScriptingCommandDescriptor(java.io.File file)
Method Detail

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.