com.haley.haleyrules.jsr94
Class RuleExecutionSetImpl

java.lang.Object
  |
  +--com.haley.haleyrules.jsr94.RuleExecutionSetImpl
All Implemented Interfaces:
javax.rules.admin.RuleExecutionSet, java.io.Serializable

public class RuleExecutionSetImpl
extends java.lang.Object
implements javax.rules.admin.RuleExecutionSet, java.io.Serializable

A named set of executable Rule instances. A RuleExecutionSet can be executed by a rules engine via the RuleSession interface.

See Also:
Serialized Form

Method Summary
protected  void finalize()
          Cleanup before the RuleExecutionSet is garbage collected
 java.lang.String getDefaultObjectFilter()
          Gets the default ObjectFilter class name associated with this rule execution set.
 java.lang.String getDescription()
          Gets a description of this rule execution set.
 java.lang.String getName()
          Gets the name of this rule execution set.
 java.lang.Object getProperty(java.lang.Object key)
          Gets a user defined or vendor defined property
 java.util.List getRules()
          Gets a list of all Rules that are part of the RuleExecutionSet
 void setDefaultObjectFilter(java.lang.String objectFilterClassName)
           Set the default ObjectFilter class.
 void setProperty(java.lang.Object key, java.lang.Object value)
          Set a user defined or vendor defined property
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultObjectFilter

public java.lang.String getDefaultObjectFilter()
Gets the default ObjectFilter class name associated with this rule execution set.
Specified by:
getDefaultObjectFilter in interface javax.rules.admin.RuleExecutionSet
Returns:
the default ObjectFilter class name

getDescription

public java.lang.String getDescription()
Gets a description of this rule execution set.
Specified by:
getDescription in interface javax.rules.admin.RuleExecutionSet
Returns:
A description of this rule execution set or null of no description is specified

getName

public java.lang.String getName()
Gets the name of this rule execution set.
Specified by:
getName in interface javax.rules.admin.RuleExecutionSet
Returns:
the name of this rule execution set

getProperty

public java.lang.Object getProperty(java.lang.Object key)
Gets a user defined or vendor defined property
Specified by:
getProperty in interface javax.rules.admin.RuleExecutionSet
Parameters:
key - the key to use to retrieve the property
Returns:
the value bound to the key or null

getRules

public java.util.List getRules()
Gets a list of all Rules that are part of the RuleExecutionSet
Specified by:
getRules in interface javax.rules.admin.RuleExecutionSet
Returns:
List a list of all Rules that are part of the RuleExecutionSet

setDefaultObjectFilter

public void setDefaultObjectFilter(java.lang.String objectFilterClassName)

Set the default ObjectFilter class. This class is instanciated at runtime and used to filter result objects unless another filter is specified using the available APIs in the runtime view of a rule engine.

Setting the class name to null removes the default ObjectFilter

Specified by:
setDefaultObjectFilter in interface javax.rules.admin.RuleExecutionSet
Parameters:
objectFilterClassName - the class name of the object filter

setProperty

public void setProperty(java.lang.Object key,
                        java.lang.Object value)
Set a user defined or vendor defined property
Specified by:
setProperty in interface javax.rules.admin.RuleExecutionSet
Parameters:
key - the key for the property value
value - the value to associate with the key

finalize

protected void finalize()
                 throws java.lang.Throwable
Cleanup before the RuleExecutionSet is garbage collected
Overrides:
finalize in class java.lang.Object


Copyright © 2005-2006 Haley Systems, Inc. All Rights Reserved.