Package oracle.rules.sdk2.ruleset
Class PatternTable
java.lang.Object
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Pattern>,Collection<Pattern>,List<Pattern>
A PatternTable is a list of Patterns used in a Rule.
The Patterns in a PatternTable are combined using the conjuntions defined in each Pattern. By default, Patterns in the Table are And'd and there are no groups.
- See Also:
-
Field Summary
Fields inherited from class oracle.rules.sdk2.dictionary.DictionaryComponentTable
SORT, SORT_ASCEND, SORT_DECEND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(int index) Create a new Pattern and add it at the given indexflatten()booleangetRL(StringBuilder sb, Map<Object, Object> properties) Internal Use Only.booleanUsed to tell if the PatternTable contains sub-tables.voidvalidate(List<SDKException> errors, List<SDKWarning> warnings) Validate the entire dictionary object and its decendants.Methods inherited from class oracle.rules.sdk2.ruleset.RuleComponentTable
getParentMethods inherited from class oracle.rules.sdk2.dictionary.DictionaryComponentTable
_clear, _remove, _remove, add, add, add, addAll, addAll, clear, contains, containsAll, copyTo, copyTo, cut, filter, get, getAEReferences, getAllReferences, getByAlias, getByAlias, getByID, getByName, getExprParserReferences, getLast, getMarked, getProtoType, indexOf, initProtoType, isEmpty, isLocked, iterator, lastIndexOf, listIterator, listIterator, mark, move, move, ordering, paste, remove, remove, removeAll, removeByAlias, removeByID, removeByName, removeMarked, removeProtoType, reorder, retainAll, set, size, sort, sort, sort, subList, toArray, toArray, unMark, validateMethods inherited from class oracle.rules.sdk2.dictionary.DictionaryObject
_clearID, equals, exists, getAEReferenceCount, getCombinedDataModel, getContainedIDs, getContainedIDs, getDataModel, getDictionary, getID, getIndent, getObjectPath, getObjectType, getParentByClass, getParentComponent, getParentComponentTable, getParentObject, getReferences, getRuleSet, getState, getWarnings, hashCode, isModified, setID, validateMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
PatternTable
-
-
Method Details
-
hasGroups
public boolean hasGroups()Used to tell if the PatternTable contains sub-tables. If only of correct type.- Returns:
- true if PatternTable contains only FactPatterns, with no sub-tables
-
flatten
-
add
Create a new Pattern and add it at the given index- Specified by:
addin classDictionaryComponentTable<Pattern>- Returns:
- a new Pattern
-
getRL
Internal Use Only. Allow decision table to getRL -
getRLBindVars
-
validate
Description copied from class:DictionaryObjectValidate the entire dictionary object and its decendants. Not incremental.- Overrides:
validatein classDictionaryComponentTable<Pattern>- Parameters:
errors- a List of error exceptions to append to.warnings- a List of warning exceptions to append to.- See Also:
-