Class SimpleTest
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,,Object> UnnamedComponent,ExpressionContext,ScopedVariable,VariableScope,VerbalRuleComponent
- FORM_SIMPLE - a == 1
- FORM_EXPRESSION - isNull(x)
- FORM_VARIABLE_DEFINITION - x = 1
- FORM_NESTED - (...)
- FORM_NESTED_NOT - not(...)
- FORM_NESTED_AND - and(...)
- FORM_NESTED_OR - or(...)
- FORM_IS_A - po is a purchase order
- FORM_SOME_FACT - there is a purchase order where
- FORM_SOME_CASE - there is a case where
- FORM_NO_FACT - there is no purchase order where
- FORM_NO_CASE - there is no case where
- FORM_AGGREGATE - total salary is the sum of Emp.salary [where ...]
A SimpleTest has the following properties:
- form - as in the table list above
- expressionTable - list of expressions used in the test, typically a left and a right side expression (FORM_SIMPLE), value of a variable (FORM_VARIABLE_DEFINITION), input to aggregation function (FORM_AGGREGATE)
- operatorID - a boolean builtin such as "==" or a boolean function or method ID (FORM_SIMPLE), or an aggregation function (FORM_AGGREGATE)
- connective - "and" or "or" between this and following SimpleTest
- variable (FORM_VARIABLE_DEFINITION, FORM_IS_A, FORM_AGGREGATE)
- simpleTestTable - for nested tests (FORM_NESTED, FORM_NESTED_NOT, FORM_NESTED_AND, FORM_NESTED_OR, FORM_SOME_FACT, FORM_SOME_CASE, FORM_NO_FACT, FORM_NO_CASE, FORM_AGGREGATE). Nested IS_A tests are hidden in the case of outer forms FORM_AGGREGATE, FORM_SOME_FACT, FORM_NO_FACT
- factType, factPath (FORM_IS_A)
All forms use the Connective property to specify whether this test is connected to the next test in the containing table by "And" or "Or", except when the containing table is for a test of form FORM_NESTED_AND or FORM_NESTED_OR. In these cases, the connective is given by the containing form. FORM_SIMPLE consists of 3 additional properties describing the immediate simple test:
- ExpressionTable containing 2 or more expressions,
- Operator,
- RightSeparator
- Variable, the name of the variable
- ExpressionTable containing 1 expression, the value of the variable
> Nested forms use only:
- Operator ("", "not"). These are redundant and are for backward compatibility. FORM_NESTED may have either operator, but FORM_NESTED_NOT has only "not".
- SimpleTestTable.
For Example:
Order.total > 500 AND...
"Order.total" is the left expression (expression[0]), ">=" is the comparison operator, "500" is the right expression (expression[1]), "AND" is the connective.
On output, valid choices for the context of the SimpleTest can be obtained by calling getLeft().getValueOptions(), or getOperatorOptions(), etc.
Simple Tests may be grouped by use of the SimpleTestTable contained in each SimpleTest and setting of the Form property to FORM_NESTED, FORM_NESTED_NOT, FORM_NESTED_AND, ...
For Example:
Producing tests that are grouped in this way: not ( T1 && (T2 || T3) would require five SimpleTests: - SimpleTest with FORM_NESTED_NOT The embedded SimpleTestTable would contain two SimpleTests: - the first one with FORM_SIMPLE for T1 Connective: && - the second with FORM_NESTED the embedded SimpleTestTable would contain: two SimpleTests: - the first for T2 with connective: || - the second for T3
between and in
Most builtin simple tests are binary. The have 2 entries in the expression table, and convenience methodsgetLeft()and getRight()may be used as shorthand for
getExpressionTable().get(0) getExpressionTable().get(1)respectively. The builtins "between" and "in" take 3 or more arguments. The first is the left side expression. The second, third, and possibly more are the right side expressions. Use
getRightSeparator()
to determine how to display the right side arguments. If this method returns "", there is only
one right side expression. E.g. consider a SimpleTest with
- Form: FORM_SIMPLE
- Operator: "between"
- ExpressionTable: "somebody.age", 20, 30
- RightSeparator: "and"
sombody.age between 20 and 30Note the "in" operator can have more than 3 expressions in its expression table. The SDK will create the first 3 expressions; the UI is responsible for adding more expressions and removing unwanted expressions. For example, the UI might show the following simple test:
item.color in "red", "blue" [+] [-]The user can click on the [+] to add another color to the test
item.color in "red", "blue", "black" [+] [-]The UI must call
getExpressionTable().add() to add a new expression for "black".
When the user clicks [-], the UI calls getExpressionTable().remove(getExpressionTable().size()-1)- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class oracle.rules.sdk2.ruleset.FactBinding
FactBinding.FactPathProperty, FactBinding.VariablePropertyNested classes/interfaces inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent
DictionaryComponent.Diff<T extends DictionaryComponent>, DictionaryComponent.DiffSummary, DictionaryComponent.DiffTypeNested classes/interfaces inherited from interface java.util.Map
Map.Entry<K extends Object,V extends Object> Nested classes/interfaces inherited from interface oracle.rules.sdk2.ruleset.VariableScope
VariableScope.ExprLocation -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringindicates a boolean expressionstatic final Stringstatic final Stringindicates a SimpleTestTable is expected to have entries.static final Stringstatic final Stringindicates a SimpleTestTable is expected to have entries.static final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.static final Stringindicates a variant of <expression> <operator> <expression> SimpleTestTable and Variable properties are not used.static final Stringstatic final Stringstatic final Stringindicates <variable> = <expression> SimpleTestTable property is ignored.Fields inherited from class oracle.rules.sdk2.ruleset.RuleComponent
BUILTINFields inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent
PROP_ACCESS, PROP_ACTION_SELECTED, PROP_ACTION_TABLE, PROP_ACTIVE, PROP_ACTUAL_TEST_OUTPUT_TABLE, PROP_ADHOC_TEST_VALIDATION, PROP_ADVANCED_MODE, PROP_AGGREGATE, PROP_AGGREGATE_TABLE, PROP_ALIAS, PROP_ALLOW_GAPS, PROP_ALWAYS_SELECTED, PROP_ARRAY, PROP_ARRAY_COMPONENT_TYPE, PROP_ARRAY_COMPONENT_TYPE_ID, PROP_ARRAY_FACT_TYPE_TABLE, PROP_AUTO_CONFLICT_RESOLUTION, PROP_AUTO_PATTERN_PROPERTY, PROP_AUTO_SYNC, PROP_BODY, PROP_BUCKET_ID_TABLE, PROP_BUCKET_SET, PROP_BUCKET_SET_ID, PROP_BUCKET_SET_TABLE, PROP_BUCKET_TABLE, PROP_CALENDAR_FORM, PROP_CHECK_RULE_FLOW, PROP_CHILD_DIMENSION_NODES, PROP_CONFLICT, PROP_CONFLICT_POLICY, PROP_CONNECTIVE, PROP_CONSTANT, PROP_CONSTRUCTOR, PROP_CONSTRUCTOR_TABLE, PROP_CREATION_UPDATE_NUMBER, PROP_CURSOR_POSITION, PROP_CUSTOM_BINDING, PROP_DATA_MODEL, PROP_DATA_SOURCE, PROP_DECISION_FUNCTION, PROP_DECISION_FUNCTION_ID, PROP_DECISION_FUNCTION_INPUT_TABLE, PROP_DECISION_FUNCTION_OUTPUT_TABLE, PROP_DECISION_FUNCTION_RULESET_TABLE, PROP_DECISION_FUNCTION_TABLE, PROP_DECISION_MODEL, PROP_DESCRIPTION, PROP_DF_FACT, PROP_DF_FACT_ID, PROP_DICT_LOADING_EXTENSION, PROP_DICTIONARY_LINK_TABLE, PROP_DIMENSION_NODE_TABLE, PROP_DIMENSION_TABLE, PROP_DISALLOW_ERROR_SUPPRESSION, PROP_DRAFT, PROP_DSL_ID, PROP_DSL_PARAMETER_TABLE, PROP_DSL_TABLE, PROP_DSL_VALUE, PROP_DT_ACTION_NODE_TABLE, PROP_DT_ACTION_PARAMETER_NAME, PROP_DTACTION_TABLE, PROP_DTRULE_TABLE, PROP_EFFECTIVE_END_DATE, PROP_EFFECTIVE_START_DATE, PROP_ENUM, PROP_ENUM_BUCKET_SET, PROP_ENUM_BUCKET_SET_ID, PROP_ENUM_TYPE, PROP_EXCEPTION_IDS, PROP_EXCEPTIONS, PROP_EXCLUDED, PROP_EXPECTED_TEST_OUTPUT_TABLE, PROP_EXPRESSION, PROP_EXPRESSION_TABLE, PROP_FACT_PATH, PROP_FACT_PATH_IDS, PROP_FACT_TABLE, PROP_FACT_TYPE, PROP_FACT_TYPE_ID, PROP_FACT_TYPE_IDS, PROP_FACT_TYPE_TABLE, PROP_FACT_TYPES, PROP_FIELD_TABLE, PROP_FINAL, PROP_FORM, PROP_FORMAL_PARAMETER_TABLE, PROP_FUNCTION, PROP_FUNCTION_ID, PROP_FUNCTION_SIGNATURE, PROP_FUNCTION_TABLE, PROP_GENERATED_FROM, PROP_GLOBAL_ALIAS, PROP_ID, PROP_INCLUDE_CHAINED_EXPR, PROP_INCLUDED, PROP_INTERFACE, PROP_INTERFACE_IDS, PROP_INTERFACES, PROP_IS_ABSTRACT, PROP_IS_CONSTANT, PROP_IS_ENUM, PROP_IS_FINAL, PROP_IS_JAXB2, PROP_IS_PRIMARY_KEY, PROP_IS_STATIC, PROP_IS_TOPLEVEL_VIEW_OBJECT, PROP_LEFT, PROP_LIFECYCLE, PROP_LIFECYCLE_DESCRIPTION, PROP_LINK_PATH, PROP_LIST, PROP_LIST_CONTENT_TYPE, PROP_LIST_CONTENT_TYPE_ID, PROP_LOCAL, PROP_LOGICAL, PROP_METHOD_TABLE, PROP_MODIFIERS, PROP_NAME, PROP_NAMESPACE, PROP_NESTED_TABLE, PROP_NO_CONFLICT, PROP_NO_RULE_FIRED_IS_ERROR, PROP_NODE_NAME, PROP_OPERATOR, PROP_OPERATOR_ID, PROP_ORDER_RULES_BY_BUCKET, PROP_OTHERWISE, PROP_OUTPUT_TYPES, PROP_OVERLOADED_PARAMETER_TABLE, PROP_OVERRIDDEN_BY, PROP_OVERRIDE, PROP_PACKAGE, PROP_PARAM, PROP_PARAM_EXPRESSION, PROP_PARAMETER_ALIAS, PROP_PARAMETER_ID, PROP_PARAMETER_LIST, PROP_PARAMETER_NAME, PROP_PARAMETER_REQUIRED, PROP_PARAMETER_TYPE_IDS, PROP_PARAMETER_TYPES, PROP_PARENT_DIMENSION_NODE, PROP_PATTERN_TABLE, PROP_PHRASE_SUGGESTION_FORM, PROP_PREFERENCES, PROP_PREFIX_LINKED_NAMES, PROP_PRIORITY, PROP_PRIVATE_BUCKET_SET, PROP_PROPERTIES, PROP_PROPERTY, PROP_PROPERTY_ID, PROP_PROPERTY_TABLE, PROP_PROPERTY_VALUE_TABLE, PROP_QUALIFIER_PATTERN, PROP_READABLE, PROP_REF_ID, PROP_REPORT_BYUSE_NAMES, PROP_REPORT_PATTERNS, PROP_RESOLVED_TARGET, PROP_RESOLVED_VALUE, PROP_RESOURCE_BUNDLE, PROP_RESTRICT_AUTO_SUGGESTIONS, PROP_RETURN_TYPE, PROP_RIGHT, PROP_RIGHT_SEPARATOR, PROP_RULE_EXEC_ALGORITHM, PROP_RULE_FIRING_LIMIT, PROP_RULE_FIRING_LIMIT_ERROR, PROP_RULE_REPORT_TABLE, PROP_RULE_SET_TABLE, PROP_RULE_SHEET_TABLE, PROP_RULE_TABLE, PROP_RULESET, PROP_RUN_AFTER, PROP_RUN_BEFORE, PROP_SERVICE_CONFIGURATION, PROP_SERVICE_NAME, PROP_SERVICE_NAMESPACE, PROP_SHARED_BUCKET_SET, PROP_SHARED_BUCKET_SET_ID, PROP_SHOW_CONSTANTS, PROP_SHOW_FUNCTIONS, PROP_SHOW_VARIABLES, PROP_SIMPLE_TEST_TABLE, PROP_SOURCE, PROP_STATELESS, PROP_STATIC, PROP_SUPER_CLASS, PROP_SUPER_CLASS_ID, PROP_SUPPORT_XPATH, PROP_SUPPORTS_XPATH_ENABLED, PROP_SYNC_MARK, PROP_SYSTEM, PROP_TARGET, PROP_TARGET_PACKAGE, PROP_TEST_CASE_TABLE, PROP_TEST_FORM, PROP_TEST_INPUT_TABLE, PROP_TEST_MODEL, PROP_TEST_RESULT_TABLE, PROP_TEST_SUITE_TABLE, PROP_TEST_TEMPLATE_TABLE, PROP_TIMESTAMP, PROP_TOKEN_UNDER_CURSOR, PROP_TRANSLATED_ALIAS, PROP_TRANSLATED_DESCRIPTION, PROP_TRANSLATED_GLOBAL_ALIAS, PROP_TRANSLATED_PARAMETER_LIST, PROP_TRANSLATED_QUALIFIER_PATTERN, PROP_TRANSLATED_VALUE, PROP_TRANSLATED_VARIABLE, PROP_TREE, PROP_TREE_MODE, PROP_TYPE, PROP_TYPE_ID, PROP_TYPE_IDS, PROP_TYPES, PROP_UNIQUE_RULESETS, PROP_UNSAVED_TRANSLATED_ALIAS, PROP_UNSAVED_TRANSLATED_DESCRIPTION, PROP_UNSAVED_TRANSLATED_GLOBAL_ALIAS, PROP_UNSAVED_TRANSLATED_QUALIFIER_PATTERN, PROP_UNSAVED_TRANSLATED_VALUE, PROP_UPDATE_NUMBER, PROP_UPDATE_TIME, PROP_VALIDATION, PROP_VALIDATION_UPDATE_NUMBER, PROP_VALUE, PROP_VALUES, PROP_VARIABLE, PROP_VARIABLE_TABLE, PROP_VERBAL_RULE_TABLE, PROP_VERSION, PROP_VERTICAL_ORIENTATION, PROP_VISIBILITY_FILTER, PROP_VISIBILITY_FILTER_ENABLED, PROP_VISIBLE, PROP_WEB_SERVICE, PROP_WRITABLE, PROP_XML_NAME -
Method Summary
Modifier and TypeMethodDescriptionif this is a nested simple test, replace it with the nested simple tests.Generic property getter.Get the DOIDs referenced by all directly or indirectly contained actions and expressionsgetAlias()Even though we extend UnnamedComponent, we need the variable name to translate expressions from persistent format (`ID`) to user format (name)getAlias(boolean translate) Get alias of DictionaryComponent.Get the connective (and/or) combining this pattern with the next in the table.String[]Get Connective Property.intShort for getExpressionTable.get(0)Get the expressions.Get ExpressionTable Property.Get the ID of the fact type.getForm()Get untranslated form of this test.String[]Get untranslated options for the form of this test.Get Form Property.intgetLeft()Short for getExpressionTable().get(0)A child calls this method in the parent to see if the data type is appropriate for the context of the parent.DOID[]type of left determines type of right.String[]Get Operator Property.intgetProperties(boolean storedOnly) String[]getRight()Short for getExpressionTable.get(1)Get the nested table of SimpleTests.Get SimpleTestTable Property.String[]static String[]String[]getValue()Gets the Value of the RuleComponentGet the Value Property.booleaninScopeVariables(boolean includeAggregates, VariableScope.ExprLocation loc) By default, pass the request to the containerbooleanbooleanbooleanisDraft()Is this Component a Draft?booleanisNested()is this test nested, e.g. (...) or not(...)booleanA child calls this method in the parent to see if it must have a value !booleanShould this test be rendered?Generic property setter.voidsetConnective(String connective) Set the connective (and/or) combining this pattern with the next in the table.voidSet form of this test.voidsetOperator(String operator) voidsetOperatorID(DOID operator) voidsetValue(VerbalChoice value) Sets the Value of the RuleComponentvoidsetVariableRL(int varNum) voidsetVisible(boolean flag) Set whether this test should be rendered.Returns a list of VerbalChoices for the SimpleTest filtered by the pattern.suggestGenericChoices(String pattern) Get the list of Generic Verbal Choices based on this pattern.surround()static SimpleTestsurround(String form, List<SimpleTest> sts) static SimpleTestsurround(List<SimpleTest> sts) voidvalidate(List<SDKException> errors, List<SDKWarning> warnings) Validate and append errors and warnings.Methods inherited from class oracle.rules.sdk2.ruleset.FactBinding
getFactPath, getFactPathIDs, getFactPathOptions, getFactPathProperty, getFactType, getFactTypeOptions, getFactTypeProperty, getFactTypeSelected, getKind, getVariable, getVariable, getVariableProperty, isChildInTree, prefix, setFactPath, setFactPathIDs, setFactType, setFactTypeID, setVariable, setVariableRLMethods inherited from class oracle.rules.sdk2.ruleset.UnnamedRuleComponent
getDiffMatchValue, init, isAliasDistinct, isNameDistinctMethods inherited from class oracle.rules.sdk2.ruleset.RuleComponent
get, getParent, getParentTable, getParentVariableScope, inScopeVariables, parentAction, parentActionContext, parentAutoBindingContext, parentFunction, parentPattern, parentRule, parentRuleBase, parentRuleCommon, parentRuleSheet, parentTest, parentVariable, parentVerbalRule, RHSRuleVariables, toString, toStringMethods inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent
_get, _put, clear, containsKey, containsValue, entrySet, forceSync, getAlias, getAlias, getAliasProperty, getAllReferences, getContainedDiffs, getCustom, getDependents, getDescription, getDescription, getDescriptionProperty, getDiff, getDiffProperties, getDiffs, getExprParserReferences, getFullyQualifiedAlias, getFullyQualifiedName, getIndex, getIndex, getName, getNameProperty, getNext, getNext, getObjectPath, getOptions, getPrevious, getPrevious, getProperty, getReferences, getSelected, getTranslatedAlias, getTranslatedAlias, getTranslatedDescription, hasConflict, hasDiff, init, isEmpty, isFullyQualifiedName, isModifiable, isSystemProperty, isUnsavedTranslatedAlias, isUnsavedTranslatedDescription, keySet, putAll, remove, removeDiff, setAlias, setAlias, setCustom, setDescription, setDescription, setName, setTranslatedAlias, setTranslatedDescription, size, validate, valuesMethods inherited from class oracle.rules.sdk2.dictionary.DictionaryObject
_clearID, equals, exists, getAEReferenceCount, getCombinedDataModel, getContainedIDs, getContainedIDs, getDataModel, getDictionary, getID, getIndent, getObjectType, getParentByClass, getParentComponent, getParentComponentTable, getParentObject, getRuleSet, getState, getWarnings, hashCode, isModified, setID, validate, validateMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface oracle.rules.sdk2.ruleset.ScopedVariable
getID, getKind, setVariableRLMethods inherited from interface oracle.rules.sdk2.dictionary.UnnamedComponent
getName, setAlias, setName
-
Field Details
-
FORM_SIMPLE
indicates a variant of <expression> <operator> <expression> SimpleTestTable and Variable properties are not used.- See Also:
-
FORM_NOT_NESTED
Deprecated.useFORM_SIMPLEindicates a variant of <expression> <operator> <expression>- See Also:
-
FORM_EXPRESSION
indicates a boolean expression- See Also:
-
FORM_VARIABLE_DEFINITION
indicates <variable> = <expression> SimpleTestTable property is ignored.- See Also:
-
FORM_NESTED
indicates a SimpleTestTable is expected to have entries. ExpressionTable and Variable properties are ignored. Normally this is just "( test and/or test ... )", but could be "not ( test and/or test ... )" if operator is NOT- See Also:
-
FORM_NESTED_NOT
indicates a SimpleTestTable is expected to have entries. ExpressionTable is ignored. This is always "not( test and/or test ... )". The operator is always NOT.- See Also:
-
FORM_NESTED_AND
- See Also:
-
FORM_NESTED_OR
- See Also:
-
FORM_IS_A
- See Also:
-
FORM_SOME_FACT
- See Also:
-
FORM_SOME_CASE
- See Also:
-
FORM_NO_FACT
- See Also:
-
FORM_NO_CASE
- See Also:
-
FORM_AGGREGATE
- See Also:
-
FORM_DSL
- See Also:
-
-
Method Details
-
hasFactType
public boolean hasFactType()- Specified by:
hasFactTypein classFactBinding<SimpleTest>
-
getMatchOp
Description copied from interface:ExpressionContextA child calls this method in the parent to see if the data type is appropriate for the context of the parent. Example, in the expression x == y, the Expression y asks its parent the type of x and the operator used between the two- Specified by:
getMatchOpin interfaceExpressionContext
-
getMatchTypeIDs
type of left determines type of right. if left has no type and right does, type of right determines type of left- Specified by:
getMatchTypeIDsin interfaceExpressionContext
-
isValueRequired
Description copied from interface:ExpressionContextA child calls this method in the parent to see if it must have a value != ""- Specified by:
isValueRequiredin interfaceExpressionContext
-
validate
Description copied from class:DictionaryComponentValidate and append errors and warnings.- Overrides:
validatein classFactBinding<SimpleTest>- Parameters:
errors- a List of error exceptions to append to.warnings- a List of warning exceptions to append to.- See Also:
-
getPropertyNames
- Specified by:
getPropertyNamesin interfaceUnnamedComponent- Overrides:
getPropertyNamesin classFactBinding<SimpleTest>- Returns:
- Array of property names available.
-
getStoredPropertyNames
- Overrides:
getStoredPropertyNamesin classFactBinding<SimpleTest>- Returns:
- Array of property names which are persisted in the order in which they appear in the schema.
-
isDraft
public boolean isDraft()Description copied from interface:VerbalRuleComponentIs this Component a Draft?- Specified by:
isDraftin interfaceVerbalRuleComponent- Returns:
- true if the component is a Draft, false otherwise
-
getFormProperty
Get Form Property.- Returns:
- TranslatedProperty
-
setForm
Set form of this test.- Parameters:
form- the untranslated form. Form can be set using a translated form string usinggetFormProperty().setTranslatedForm(translatedForm)
-
getForm
Get untranslated form of this test. Translated form can be gotten fromgetFormProperty().getTranslatedValue()- Returns:
- untranslated form
-
getFormOptions
Get untranslated options for the form of this test. Translated options can be gotten fromgetFormProperty().getTranslatedOptions()- Returns:
- untranslated options
-
getFormSelected
public int getFormSelected() -
getOperatorProperty
Get Operator Property.- Returns:
- OperatorProperty
-
getOperator
-
setOperator
-
getOperatorID
-
setOperatorID
-
getOperatorOptions
-
getOperatorSelected
public int getOperatorSelected() -
getExpressionTableProperty
Get ExpressionTable Property.- Returns:
- Expression TableProperty
-
getExpressionTable
Get the expressions. In simple form, the expressions are related by the test operator. Entry 0 is the left hand side, entry 1 is the right hand side. Entry 2 and above may apply ifgetRightSeparator()returns other than "". Aggregate uses 1 expression. Rule test variables use 1 expression. The expression form uses 1 expression.- Returns:
- expression table
-
getExpression
Short for getExpressionTable.get(0)- Returns:
- first expression in the table
-
getLeft
Short for getExpressionTable().get(0)- Returns:
- first expression in the table
-
getRight
Short for getExpressionTable.get(1)- Returns:
- second expression in the table
-
getConnectiveProperty
Get Connective Property.- Returns:
- TranslatedProperty
-
getConnective
Get the connective (and/or) combining this pattern with the next in the table. Defaults toUtil.CONNECTIVE_ANDif not set -
setConnective
Set the connective (and/or) combining this pattern with the next in the table. Defaults toUtil.CONNECTIVE_ANDif not set -
getConnectiveOptions
-
getConnectiveSelected
public int getConnectiveSelected() -
getSimpleTestTableProperty
Get SimpleTestTable Property.- Returns:
- SimpleTest TableProperty
-
getSimpleTestTable
Get the nested table of SimpleTests. This must contain at least one entry if the form is set to FORM_NESTED_TABLE -
get
Description copied from class:DictionaryComponentGeneric property getter.Please see the specific bean class for a list of properties.
- Specified by:
getin interfaceMap<String,Object> - Overrides:
getin classFactBinding<SimpleTest>- Parameters:
key- a String containing the property name to be fetched.- Returns:
- the value corresponding to the key: a String, String[], DictionaryComponent, DictionaryComponentTable, etc.
-
put
Description copied from class:DictionaryComponentGeneric property setter. Throws runtime exceptions for incorrect arguments. Please see the specific bean class for a list of properties, their types, and permissible values.A put() with either null key or null value throws a NullPointerException.
A put() with a key that is not a String throws a ClassCastException
A put() of a value that is not of the correct type for the key throws a ClassCastException.
Bean properties which have no set() method are read only, and cannot be modified using the put(). Attempting to do so throws a runtime IllegalArgumentException. PROP_ID, and PROP_*_SELECTED are always read only.
- Specified by:
putin interfaceMap<String,Object> - Overrides:
putin classFactBinding<SimpleTest>- Parameters:
key- the key of the property to setvalue- the value of the named property to set- Returns:
- the previous value of the property
-
getRightSeparator
-
desurround
if this is a nested simple test, replace it with the nested simple tests. If not nested, do nothing. If the return value is not this SimpleTest, then this SimpleTest has been removed from the dictionary and should not be referenced again.- Returns:
- the simple test replacing this one, or this if this is not nested, or null, if this is nested but empty
-
surround
-
surround
-
surround
-
surround
-
getSurroundingFormOptions
-
getTranslatedSurroundingFormOptions
-
isBuiltInOperator
public boolean isBuiltInOperator() -
isVisible
public boolean isVisible()Should this test be rendered? Tree mode generates join tests that are hidden in tree mode. Forms SOME_FACT and NO_FACT render the fact type(s) along with the test, but store the fact type(s) as the first non-visible nested IS_A test(s)- Returns:
- boolean flag
-
setVisible
public void setVisible(boolean flag) Set whether this test should be rendered. Forms SOME_FACT and NO_FACT render the fact type(s) along with the test, but store the fact type(s) as the first hidden nested IS_A test(s). A SOME_FACT or NO_FACT test must have one or more non-visible nested IS_A tests to represent the fact type(s) selected. -
getAEReferences
Description copied from class:DictionaryComponentGet the DOIDs referenced by all directly or indirectly contained actions and expressions- Overrides:
getAEReferencesin classDictionaryComponent<SimpleTest>- Returns:
- list of the DOIDs
-
inScopeVariables
public List<ScopedVariable> inScopeVariables(boolean includeAggregates, VariableScope.ExprLocation loc) Description copied from class:RuleComponentBy default, pass the request to the container- Specified by:
inScopeVariablesin interfaceVariableScope- Overrides:
inScopeVariablesin classRuleComponent<SimpleTest>
-
getAlias
Even though we extend UnnamedComponent, we need the variable name to translate expressions from persistent format (`ID`) to user format (name)- Specified by:
getAliasin interfaceUnnamedComponent- Overrides:
getAliasin classDictionaryComponent<SimpleTest>- Returns:
- the name of the fact bind variable
-
getAlias
Description copied from class:DictionaryComponentGet alias of DictionaryComponent.- Specified by:
getAliasin interfaceScopedVariable- Overrides:
getAliasin classDictionaryComponent<SimpleTest>- Parameters:
translate- whether to get the translated alias- Returns:
- translated alias of the dictionary component, or alias if translation does not exist
-
getVariableRL
- Specified by:
getVariableRLin interfaceScopedVariable- Overrides:
getVariableRLin classFactBinding<SimpleTest>
-
getFactTypeID
Description copied from class:FactBindingGet the ID of the fact type.- Specified by:
getFactTypeIDin interfaceScopedVariable- Overrides:
getFactTypeIDin classFactBinding<SimpleTest>
-
setVariableRL
public void setVariableRL(int varNum) - Specified by:
setVariableRLin interfaceScopedVariable- Overrides:
setVariableRLin classFactBinding<SimpleTest>
-
isAssignable
public boolean isAssignable()- Specified by:
isAssignablein interfaceScopedVariable
-
isNested
public boolean isNested()is this test nested, e.g. (...) or not(...)- Returns:
- boolean
-
getProperties
- Overrides:
getPropertiesin classDictionaryComponent<SimpleTest>
-
getValueProperty
Description copied from interface:VerbalRuleComponentGet the Value Property.- Specified by:
getValuePropertyin interfaceVerbalRuleComponent- Returns:
- VerbalProperty
-
suggest
Returns a list of VerbalChoices for the SimpleTest filtered by the pattern.- Specified by:
suggestin interfaceVerbalRuleComponent- Parameters:
pattern- to filter the Verbal choices bypaged- true if choices are to be paged- Returns:
- A list of filtered Verbal choices
-
setValue
Sets the Value of the RuleComponent- Specified by:
setValuein interfaceVerbalRuleComponent- Parameters:
value- VerbalChoice
-
getValue
Description copied from interface:VerbalRuleComponentGets the Value of the RuleComponent- Specified by:
getValuein interfaceVerbalRuleComponent- Returns:
- VerbalChoice
-
suggestGenericChoices
Description copied from interface:VerbalRuleComponentGet the list of Generic Verbal Choices based on this pattern. These choices would be used in case the pattern does not match any of the choices that are pre-computed or derived from DSLs.- Specified by:
suggestGenericChoicesin interfaceVerbalRuleComponent- Parameters:
pattern- search pattern- Returns:
- A list of generic Verbal Choices provided by this component
-
FORM_SIMPLE