Rule Execution Server API

ilog.rules.factory
Class IlrRulesetPrinter

java.lang.Object
  extended by ilog.rules.factory.IlrRulesetPrinter

public class IlrRulesetPrinter
extends Object

This class provides utilities for writing the components of a ruleset. It is based on IlrRuleWriter class, but further configure it in order to provide more specific methods. An object of this class works implicitly on an instance of IlrRulesetFactory.


Constructor Summary
IlrRulesetPrinter(Writer writer)
          Constructs an object which writes rules to the passed writer.
 
Method Summary
 void begin(IlrRulesetFactory factory)
          Sets the passed ruleset factory object as working object.
 void end()
          Resets this object to its initial state.
 String[] getImportPackages()
          Gets the import packages of this ruleset.
 IlrRuleWriter getRuleWriter()
          Gets the underline rule writer.
 void printFunction(IlrFunctionFactory function, boolean indent)
          Prints a function with or without the first level indent.
 void printInitialActions(boolean indent)
          Prints the initial actions with or without the first level indent.
 void printProperties()
          Prints the properties of this ruleset.
 void printRule(IlrRuleFactory rule, boolean indent)
          Prints a rule with or without the first level indent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrRulesetPrinter

public IlrRulesetPrinter(Writer writer)
Constructs an object which writes rules to the passed writer.

Method Detail

begin

public void begin(IlrRulesetFactory factory)
Sets the passed ruleset factory object as working object.


end

public void end()
Resets this object to its initial state.


getRuleWriter

public final IlrRuleWriter getRuleWriter()
Gets the underline rule writer.


getImportPackages

public String[] getImportPackages()
Gets the import packages of this ruleset.


printProperties

public void printProperties()
Prints the properties of this ruleset.


printInitialActions

public void printInitialActions(boolean indent)
Prints the initial actions with or without the first level indent.


printFunction

public void printFunction(IlrFunctionFactory function,
                          boolean indent)
Prints a function with or without the first level indent.


printRule

public void printRule(IlrRuleFactory rule,
                      boolean indent)
Prints a rule with or without the first level indent.


Rule Execution Server API

© Copyright IBM Corp. 1987, 2013