Package oracle.rules.sdk2.ruleset
Class SimpleTestTable
java.lang.Object
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<SimpleTest>,Collection<SimpleTest>,List<SimpleTest>
A SimpleTestTable contains SimpleTestExpression's which
are combined with AND's or OR's. @see SimpleTestExpression.
- 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 SimpleTest and add it at the given indexvoidKeeping this independent of validate, since this is not required for nested SimpleTestTables.voidflatten()booleangetRL(StringBuilder sb, Map<Object, Object> properties) Internal Use Only.getRoot()get the visible simple tests from this tablemove(int index, boolean up) Shift the entry defined by index either up or down one entry in the table.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, 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
-
SimpleTestTable
-
-
Method Details
-
add
Create a new SimpleTest and add it at the given index- Specified by:
addin classDictionaryComponentTable<SimpleTest>- Returns:
- a new SimpleTest
-
validate
Description copied from class:DictionaryObjectValidate the entire dictionary object and its decendants. Not incremental.- Overrides:
validatein classDictionaryComponentTable<SimpleTest>- Parameters:
errors- a List of error exceptions to append to.warnings- a List of warning exceptions to append to.- See Also:
-
deleteUnreferencedAutoPatternsForPrototype
public void deleteUnreferencedAutoPatternsForPrototype() -
deleteUnreferencedAutoPatterns
public void deleteUnreferencedAutoPatterns()Keeping this independent of validate, since this is not required for nested SimpleTestTables. Components containing a SimpleTestTable can invoke this method depending on whether its a top level table. -
getRL
Internal Use Only. Allow decision table to getRL -
flatten
-
getLocalVariables
- Returns:
- List of all the local (not the in scope) variables in this SimpleTestTable
-
getRoot
-
getVisible
get the visible simple tests from this table- Returns:
- list of visible simple tests
-
move
Shift the entry defined by index either up or down one entry in the table. The direction up==true will swap the entry with the one with index -1. The direction up==false will swap the entry with the one with index + 1.- Overrides:
movein classDictionaryComponentTable<SimpleTest>- Parameters:
index- Index of the Test to move in this tableup- true for the Test is to be moved one entry upwards, false to be moved downwards- Returns:
- the test moved
-