Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.7)

E10663-11

oracle.rules.sdk2.decisiontable
Class DTRuleTable

java.lang.Object
  extended by oracle.rules.sdk2.dictionary.DictionaryObject
      extended by oracle.rules.sdk2.dictionary.DictionaryComponentTable<T>
          extended by oracle.rules.sdk2.ruleset.RuleComponentTable<T>
              extended by oracle.rules.sdk2.decisiontable.DTComponentTable<DTRule>
                  extended by oracle.rules.sdk2.decisiontable.DTRuleTable
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<DTRule>, java.util.Collection<DTRule>, java.util.List<DTRule>

public class DTRuleTable
extends DTComponentTable<DTRule>

A list of DTRules in the decision table. RuleSheet contains a DTRuleTable, which holds multiple DTRules in this RuleSheet.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class oracle.rules.sdk2.dictionary.DictionaryComponentTable
SORT, SORT_ASCEND, SORT_DECEND
 
Method Summary
 DTRule add()
          Create a new DTRule with all DimensionNodes set to "?".
 boolean add(DTRule o)
          Used internally by subclasses.
 DTRule add(int index)
          Add DTRule to table at given index.
 void add(int index, DTRule r)
          Used to force the rule into this decision table at given index
 DTRule add(java.lang.String[][] dimensionValues)
           
 boolean canAdd()
          can a rule be added to the decision table?
 void clear()
          remove all elements in the table
 void move(int fromIndex, int toIndex, boolean replace)
          Move the DictionaryComponent with the given id from its current location to the location of the second id.
 
Methods inherited from class oracle.rules.sdk2.decisiontable.DTComponentTable
addAll, addAll, parentRuleSheet, removeAll, retainAll, set
 
Methods inherited from class oracle.rules.sdk2.ruleset.RuleComponentTable
getParent
 
Methods inherited from class oracle.rules.sdk2.dictionary.DictionaryComponentTable
contains, containsAll, copyTo, cut, get, getAEReferences, getAllReferences, getByAlias, getByAlias, getByID, getByName, getLast, getMarked, getProtoType, indexOf, isEmpty, isLocked, iterator, listIterator, listIterator, mark, move, paste, remove, remove, removeByAlias, removeByID, removeByName, removeMarked, reorder, size, sort, sort, sort, subList, toArray, toArray, unMark, validate, validate
 
Methods inherited from class oracle.rules.sdk2.dictionary.DictionaryObject
equals, exists, getCombinedDataModel, getContainedIDs, getContainedIDs, getDataModel, getDictionary, getID, getIndent, getLevel, getObjectPath, getObjectType, getParentByClass, getParentComponent, getParentComponentTable, getParentObject, getReferences, getRuleSet, getState, getWarnings, hashCode, isModified, validate
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode, lastIndexOf
 

Method Detail

add

public DTRule add()
Create a new DTRule with all DimensionNodes set to "?". Add it toward the end of the DTRuleTable reusing "?" DimensionNodes. If a DTRule already exists with all DimensionNodes "?", just return that rule.

Overrides:
add in class DictionaryComponentTable<DTRule>
Returns:
DTRule with all DimensionNodes set to "?".

add

public DTRule add(java.lang.String[][] dimensionValues)

canAdd

public boolean canAdd()
can a rule be added to the decision table? at most 1 rule can have Don't Cares in all dimensions. If no such rule exists, then a new rule can be added and this method returns true.

Returns:
boolean

add

public DTRule add(int index)
Add DTRule to table at given index.

Specified by:
add in class DictionaryComponentTable<DTRule>
Returns:
new table element

clear

public void clear()
Description copied from class: DictionaryComponentTable
remove all elements in the table

Specified by:
clear in interface java.util.Collection<DTRule>
Specified by:
clear in interface java.util.List<DTRule>
Overrides:
clear in class DictionaryComponentTable<DTRule>

add

public void add(int index,
                DTRule r)
Used to force the rule into this decision table at given index

Specified by:
add in interface java.util.List<DTRule>
Overrides:
add in class DictionaryComponentTable<DTRule>
Parameters:
index -
r - DTRule

move

public void move(int fromIndex,
                 int toIndex,
                 boolean replace)
Description copied from class: DictionaryComponentTable
Move the DictionaryComponent with the given id from its current location to the location of the second id. Shift the row currently at that location up, or replace it.

Overrides:
move in class DictionaryComponentTable<DTRule>
Parameters:
fromIndex - the index of the row to move
toIndex - move row to this location
replace - if true, replace existing row at toIndex, if false move existing row to next higher index

add

public boolean add(DTRule o)
Description copied from class: DictionaryComponentTable
Used internally by subclasses.

Specified by:
add in interface java.util.Collection<DTRule>
Specified by:
add in interface java.util.List<DTRule>
Overrides:
add in class DictionaryComponentTable<DTRule>
Parameters:
o - component to be added, must be of correct type for table.

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.7)

E10663-11

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.