org.drools.command.runtime.rule
Class ModifyCommand

java.lang.Object
  extended by org.drools.command.runtime.rule.ModifyCommand
All Implemented Interfaces:
Serializable, org.drools.command.Command<Object>, GenericCommand<Object>

public class ModifyCommand
extends Object
implements GenericCommand<Object>

See Also:
Serialized Form

Nested Class Summary
static class ModifyCommand.JaxbSetterAdapter
           
static class ModifyCommand.SetterImpl
           
 
Field Summary
static boolean ALLOW_MODIFY_EXPRESSIONS
          if this is true, modify can be any MVEL expressions.
 
Constructor Summary
ModifyCommand()
           
ModifyCommand(org.drools.runtime.rule.FactHandle handle, List<org.drools.command.Setter> setters)
           
 
Method Summary
 Object execute(Context context)
           
 org.drools.runtime.rule.FactHandle getFactHandle()
           
 String getFactHandleFromString()
           
 List<org.drools.command.Setter> getSetters()
           
 void setFactHandleFromString(String factHandleId)
           
 void setSetters(List<org.drools.command.Setter> setters)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALLOW_MODIFY_EXPRESSIONS

public static boolean ALLOW_MODIFY_EXPRESSIONS
if this is true, modify can be any MVEL expressions. If false, it will only allow literal values. (false should be use when taking input from an untrusted source, such as a web service).

Constructor Detail

ModifyCommand

public ModifyCommand()

ModifyCommand

public ModifyCommand(org.drools.runtime.rule.FactHandle handle,
                     List<org.drools.command.Setter> setters)
Method Detail

execute

public Object execute(Context context)
Specified by:
execute in interface GenericCommand<Object>

getFactHandle

public org.drools.runtime.rule.FactHandle getFactHandle()

setFactHandleFromString

public void setFactHandleFromString(String factHandleId)

getFactHandleFromString

public String getFactHandleFromString()

getSetters

public List<org.drools.command.Setter> getSetters()

setSetters

public void setSetters(List<org.drools.command.Setter> setters)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.