Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.4.0)

E12063-05

oracle.dss.rules
Class ResolutionService

java.lang.Object
  extended by oracle.dss.rules.ResolutionService

public final class ResolutionService
extends java.lang.Object

Static methods that make it easier to run rules. You can run rules and rule bundles individually. This service simply provides convenience methods for running a set of rules.


Constructor Summary
ResolutionService()
           
 
Method Summary
static Mergeable resolveRules(RuleContext context, Mergeable def, RuleBundle bundle)
          Runs the rules in a rule bundle, on a Mergeable object.
static Mergeable resolveRules(RuleContext context, Mergeable def, java.util.Vector bundles)
          Runs the rules in a vector of rule bundles, on a single Mergeable object.
static Mergeable resolveRules(RuleContext context, java.util.Vector defaults, java.util.Vector bundles)
          Runs the rules in a vector of rule bundles, on a vector of Mergeable objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResolutionService

public ResolutionService()
Method Detail

resolveRules

public static final Mergeable resolveRules(RuleContext context,
                                           java.util.Vector defaults,
                                           java.util.Vector bundles)
Runs the rules in a vector of rule bundles, on a vector of Mergeable objects. This method clones the first Mergeable in the specified vector of Mergeable objects and merges the remaining Mergeable with the cloned object. Then this method runs the rule bundles that are in the specified vector of RuleBundle objects, passing the merged Mergeable object. RuleBundle objects are run in the order that they appear in the vector. The result is a single Mergeable object that can be used to paint an item in a DataView.

This method does not modify any of the objects passed to it.

Parameters:
context - The context of the item to be painted.
defaults - The vector of Mergeable objects that would be used to paint the DataView if no rules applied. All the Mergeable objects in the vector must be compatible with each other.
bundles - The vector of RuleBundle objects to run.
Returns:
A Mergeable that has been modified by the rules that have been fired.

resolveRules

public static final Mergeable resolveRules(RuleContext context,
                                           Mergeable def,
                                           java.util.Vector bundles)
Runs the rules in a vector of rule bundles, on a single Mergeable object. Then this method runs the rule bundles that are in the specified vector of RuleBundle objects, passing a clone of the specified Mergeable object. RuleBundle objects are run in the order that they appear in the vector. The result is a single Mergeable object that can be used to paint an item in a DataView.

This method does not modify any of the objects passed to it.

Parameters:
context - The context of the item to be painted.
def - The Mergeable object that would be used to paint the DataView if no rules applied.
bundles - The vector of RuleBundle objects to run.
Returns:
A Mergeable that has been modified by the rules that have been fired.

resolveRules

public static final Mergeable resolveRules(RuleContext context,
                                           Mergeable def,
                                           RuleBundle bundle)
Runs the rules in a rule bundle, on a Mergeable object. Then this method runs the specified RuleBundle object, passing a clone of the specified Mergeable object. The result is a single Mergeable object that can be used to paint an item in a DataView.

This method does not modify any of the objects passed to it.

Parameters:
context - The context of the item to be painted.
def - The Mergeable object that would be used to paint the DataView if no rules applied.
bundle - The RuleBundle object to run.
Returns:
A Mergeable that has been modified by the rules that have been fired.

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.4.0)

E12063-05

Copyright © 1997, 2011, Oracle. All rights reserved.