com.ail.core.configure.server
Class SetCommandScriptCommand

java.lang.Object
  extended by com.ail.core.Type
      extended by com.ail.core.command.AbstractCommand
          extended by com.ail.core.command.Command
              extended by com.ail.core.configure.server.SetCommandScriptCommand
All Implemented Interfaces:
CommandArg, SetCommandScriptArg, java.io.Serializable, java.lang.Cloneable

public class SetCommandScriptCommand
extends Command
implements SetCommandScriptArg

Version:
$Revision: 1.2 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
SetCommandScriptCommand()
           
 
Method Summary
 CommandArg getArgs()
          Get the argument set associated with this command.
 java.lang.String getCommandNameArg()
          Fetch the value of the commandNameArg argument.
 CommandScript getCommandScriptArg()
          Fetch the value of the commandScriptArg argument.
 java.lang.String getCommandTypeArg()
          Fetch the value of the commandTypeArg.
 java.lang.String getNamespaceArg()
          Fetch the value of the namespaceArg argument.
 void setArgs(CommandArg arg)
          Update this Command object's arguments with those taken from the command arg passed in.
 void setCommandNameArg(java.lang.String commandnamearg)
          Set the value of the commandNameArg argument.
 void setCommandScriptArg(CommandScript commandscriptarg)
          Set the value of the commandScriptArg argument.
 void setCommandTypeArg(java.lang.String commandTypeArg)
          Set the value of the commandTypeArg.
 void setNamespaceArg(java.lang.String namespacearg)
          Set the value of the namespaceArg argument.
 
Methods inherited from class com.ail.core.command.Command
clone, getAccessor, getCallersCore, getConfiguration, getVersion, invoke, setAccessor, setCallersCore, setConfiguration, setService
 
Methods inherited from class com.ail.core.Type
addAttribute, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ail.core.command.CommandArg
getCallersCore, setCallersCore
 

Constructor Detail

SetCommandScriptCommand

public SetCommandScriptCommand()
Method Detail

setArgs

public void setArgs(CommandArg arg)
Description copied from class: AbstractCommand
Update this Command object's arguments with those taken from the command arg passed in. This is in effect a bulk setter. This interface will be implemented by beans that have many more getters/setters to support their properties. The implementations of this method take 'that', and pull all the relevant properties into this.

Specified by:
setArgs in class AbstractCommand
Parameters:
arg - Source for arguments

getArgs

public CommandArg getArgs()
Description copied from class: AbstractCommand
Get the argument set associated with this command.

Specified by:
getArgs in class AbstractCommand
Returns:
This objects arguments.

getNamespaceArg

public java.lang.String getNamespaceArg()
Fetch the value of the namespaceArg argument. The namespace to fetch the command script from.

Specified by:
getNamespaceArg in interface SetCommandScriptArg
Returns:
value of namespacearg
See Also:
setNamespaceArg(java.lang.String)

setNamespaceArg

public void setNamespaceArg(java.lang.String namespacearg)
Set the value of the namespaceArg argument. The namespace to fetch the command script from.

Specified by:
setNamespaceArg in interface SetCommandScriptArg
Parameters:
namespacearg - New value for namespacearg argument.
See Also:
getNamespaceArg()

getCommandNameArg

public java.lang.String getCommandNameArg()
Fetch the value of the commandNameArg argument. The name of the command that which the script should be returned for.

Specified by:
getCommandNameArg in interface SetCommandScriptArg
Returns:
value of commandnamearg
See Also:
setCommandNameArg(java.lang.String)

setCommandNameArg

public void setCommandNameArg(java.lang.String commandnamearg)
Set the value of the commandNameArg argument. The name of the command that which the script should be returned for.

Specified by:
setCommandNameArg in interface SetCommandScriptArg
Parameters:
commandnamearg - New value for commandnamearg argument.
See Also:
getCommandNameArg()

getCommandScriptArg

public CommandScript getCommandScriptArg()
Fetch the value of the commandScriptArg argument. The command script to be saved.

Specified by:
getCommandScriptArg in interface SetCommandScriptArg
Returns:
value of commandscriptarg
See Also:
setCommandScriptArg(com.ail.core.CommandScript)

setCommandScriptArg

public void setCommandScriptArg(CommandScript commandscriptarg)
Set the value of the commandScriptArg argument. The command script saved.

Specified by:
setCommandScriptArg in interface SetCommandScriptArg
Parameters:
commandscriptarg - New value for commandscriptarg argument.
See Also:
getCommandScriptArg()

getCommandTypeArg

public java.lang.String getCommandTypeArg()
Fetch the value of the commandTypeArg. This defines the 'type' of script, e.g. BeanShell script, DRools script, etc.

Specified by:
getCommandTypeArg in interface SetCommandScriptArg
Returns:
The script type.

setCommandTypeArg

public void setCommandTypeArg(java.lang.String commandTypeArg)
Set the value of the commandTypeArg.

Specified by:
setCommandTypeArg in interface SetCommandScriptArg
Parameters:
commandTypeArg -
See Also:
getCommandTypeArg()