|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ail.core.Type
com.ail.core.CommandScript
public class CommandScript
This class represents a scripted command object. Scripted commands typically represent 'soft logic' (logic which may be altered in a live environment). This type simply holds the script's details as a value object - it doesn't offer any execution type functionality.
| Field Summary |
|---|
| Fields inherited from class com.ail.core.Type |
|---|
jXPathContext, NOT_PERSISTED |
| Constructor Summary | |
|---|---|
CommandScript()
Default constructor; |
|
CommandScript(java.lang.String script)
Constructor |
|
CommandScript(java.lang.String script,
java.lang.String type,
java.lang.String namespace,
java.lang.String commandName)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
getCommandName()
Get script's command name. |
java.lang.String |
getKey()
|
java.lang.String |
getNamespace()
Get the script's namespace. |
java.lang.String |
getScript()
Get the text of the script itself. |
java.lang.String |
getType()
Get the type of the script. |
void |
setCommandName(java.lang.String commandName)
Set the command name. |
void |
setKey(java.lang.String key)
|
void |
setNamespace(java.lang.String namespace)
Set the script's namespace. |
void |
setScript(java.lang.String script)
Set the text of the script. |
void |
setType(java.lang.String type)
Set the type of the script. |
| Methods inherited from class com.ail.core.Type |
|---|
addAttribute, clone, 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 |
| Constructor Detail |
|---|
public CommandScript()
public CommandScript(java.lang.String script,
java.lang.String type,
java.lang.String namespace,
java.lang.String commandName)
script - Text of script.type - Script's type (e.g. "BeanShell", "Drools", ...)namespace - Configuration namespace where the command belongscommandName - Command name associated with the scriptpublic CommandScript(java.lang.String script)
script - Script text| Method Detail |
|---|
public java.lang.String getKey()
public void setKey(java.lang.String key)
public java.lang.String getScript()
public void setScript(java.lang.String script)
script - public java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
namespace - getNamespace()public java.lang.String getCommandName()
...
SomeCommand command=(SomeCommand)core.newCommand("CommandName");
command.invoke()
...
public void setCommandName(java.lang.String commandName)
commandName - getCommandName()public java.lang.String getType()
public void setType(java.lang.String type)
type - Script type.getType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||