Package oracle.rules.sdk2.ruleset
Class Pattern
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,,Object> UnnamedComponent,ExpressionContext,ScopedVariable,VariableScope
Note: As of OBR 12, Patterns are used in simple mode have no tests.
A Pattern is used to structure rule conditions. A Pattern has a form property, one of
- FORM_NESTED_TABLE - this Pattern represents a block of Patterns. Only the nestedTable,
a
PatternTable, testForm, expression, simpleTestTable, connective, and operator properties of the Pattern should be used. - FORM_FACT_TYPE - this Pattern declares a variable that matches fact types in working memory. Only the variable, factType, testForm, expression, simpleTestTable, and connective properties of the Pattern should be used. This form is the default.
- FORM_FACT_PATH - this Pattern declares variable that matches a path of joins through 0 or more List<Child> properties. It is used in Tree Mode rules to suppress display of these join SimpleTests. Property usage is as for FORM_FACT_TYPE with the additional factPath property, and the restriction that factType should not be settable except for the root Pattern.
- testForm - one of TEST_FORM_SIMPLE, TEST_FORM_ADVANCED, TEST_FORM_NOTEST
- simpleTestTable - used when testForm is TEST_FORM_SIMPLE
- expression - used when testForm is TEST_FORM_ADVANCED, contains a boolean expression
- factType - a visible fact type
- factPath - a path, e.g. PurchaseOrder/item
- variable - name of variable. Defaults to factType or factPath
- operator - one of OPERATOR_FOREACH (the default), OPERATOR_SOME, OPERATOR_NONE, or OPERATOR_AGGREGATE
- connective - one of CONNECTIVE_AND (the default), CONNECTIVE_OR. If a pattern follows this Pattern in a PatternTable, then it is logically connected using AND or OR.
IF
there is no case where {
z is a Zebra and
z.color == "pink"
THEN
...
Code to construct this condition:
Pattern outer = rule.getRoot();
outer.setForm(Pattern.FORM_NESTED_TABLE);
outer.setOperator(Pattern.OPERATOR_NONE);
Pattern nested = outer.getNestedTable().add();
nested.setFactType("Zebra");
nested.setVariable("z");
nested.setTestForm(Pattern.TEST_FORM_SIMPLE);
SimpleTest test = nested.getSimpleTestTable().add();
test.getLeft().setValue("z.color");
test.getRight().setLiteralValue("pink");
- See Also:
-
Nested Class Summary
Nested 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 Stringstatic final StringUse with Pattern Form.static final Stringstatic final Stringstatic final StringUse with Pattern Operator.static final Stringstatic final Stringstatic final StringTEST_FORM_ADVANCED Specifies the use of booleanExpressionlocated in Expression property.static final StringSpecifies test form.static final StringTEST_FORM_SIMPLE Specifies the use ofSimpleTest, located in SimpleTestTable.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 TypeMethodDescriptionvoidGeneric property getter (override).Get the the Aggregate subtable when Operator is OPERATOR_AGGREGATE.Get AggregateTable Property.getAlias()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 connective (and/or) which combines this Pattern with the following Pattern, if any.String[]Get Connective Property.intGet Expression Property.getForm()Get Form describing whether this Pattern simple fact type or a subtable of fact types.String[]Get Form Property.intA child calls this method in the parent to see if the data type is appropriate for the context of the parent.DOID[]A child calls this method in the parent to see if the data type is appropriate for the context of the parent.Get the the Pattern subtable when Form is FORM_NESTED_TABLE.Get NestedTable Property.Get Pattern operator.String[]Get Operator Property.intBug 33090834 Get Operator Translated Property.String[]getSimpleTestLeft(int i) Shorthand for getSimpleTestTable.getSimpleTest(i).getLeft()getSimpleTestOperator(int i) Shorthand for getSimpleTestTable.getSimpleTest(i).getOperator()getSimpleTestRight(int i) Shorthand for getSimpleTestTable.getSimpleTest(i).getRight()Get the table of tests for this Pattern.Get SimpleTestTable Property.String[]static String[]getSurroundingFormOptions(List<Pattern> patterns) get type of test associated with the Pattern.String[]Get TestForm Property.intgetVariable(boolean translate) Get Variable Property.booleanDoes the pattern have a fact type?inScopeVariables(boolean includeAggregates, VariableScope.ExprLocation loc) By default, pass the request to the containerbooleanbooleanA child calls this method in the parent to see if it must have a value !booleanGeneric property setter.voidsetConnective(String connective) Set connective (and/or) which combines this Pattern with the following Pattern, if any.voidvoidsetOperator(String operator) Set Pattern operator.voidsetTestForm(String testForm) set type of test associated with the Pattern.voidsetVariable(String variable) surround()static Patternstatic Patternvoidvalidate(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, getFactTypeID, getFactTypeOptions, getFactTypeProperty, getFactTypeSelected, getKind, getVariableRL, isChildInTree, prefix, setFactPath, setFactPathIDs, setFactType, setFactTypeID, setVariableRL, 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, getAEReferences, 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, getProperties, 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
getFactTypeID, getID, getKind, getVariableRL, setVariableRL, setVariableRLMethods inherited from interface oracle.rules.sdk2.dictionary.UnnamedComponent
getName, setAlias, setName
-
Field Details
-
FORM_FACT_TYPE
Use with Pattern Form. Default is FORM_FACT_TYPE. FORM_NESTED_TABLE is used for a pattern block.- See Also:
-
FORM_NESTED_TABLE
- See Also:
-
FORM_FACT_PATH
- See Also:
-
OPERATOR_FOREACH
Use with Pattern Operator. Default is OPERATOR_FOREACH.OPERATOR_FOREACH corresponds to RL no pattern operator OPERATOR_SOME corresponds to RL exists pattern operator OPERATOR_NONE corresponds to RL not pattern operator OPERATOR_AGGREGATE corresponds to RL aggregate operator
- See Also:
-
OPERATOR_SOME
- See Also:
-
OPERATOR_NONE
- See Also:
-
OPERATOR_AGGREGATE
- See Also:
-
CONNECTIVE_AND
- See Also:
-
CONNECTIVE_OR
- See Also:
-
TEST_FORM_NOTEST
Specifies test form. Default is TEST_FORM_SIMPLE. TEST_FORM_NOTEST indicates the Pattern does not have an associated test.- See Also:
-
TEST_FORM_SIMPLE
TEST_FORM_SIMPLE Specifies the use ofSimpleTest, located in SimpleTestTable.- See Also:
-
TEST_FORM_ADVANCED
TEST_FORM_ADVANCED Specifies the use of booleanExpressionlocated in Expression property.- See Also:
-
-
Method Details
-
desurround
public void desurround() -
surround
-
surround
-
surround
-
surround
-
getSurroundingFormOptions
-
get
Generic property getter (override).Get fact type from ID.
-
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.
-
getSimpleTestLeft
Shorthand for getSimpleTestTable.getSimpleTest(i).getLeft()- Parameters:
i- ordinal of SimpleTest to retrieve from SimpleTestTable- Returns:
- the Expression on the left side of the SimpleTest
- Throws:
IndexOutOfBoundsException
-
getSimpleTestRight
Shorthand for getSimpleTestTable.getSimpleTest(i).getRight()- Parameters:
i- ordinal of SimpleTest to retrieve from SimpleTestTable- Returns:
- the Expression on the right side of the SimpleTest
- Throws:
IndexOutOfBoundsException
-
getSimpleTestOperator
Shorthand for getSimpleTestTable.getSimpleTest(i).getOperator()- Parameters:
i- ordinal of SimpleTest to retrieve from SimpleTestTable- Returns:
- the Operator of the SimpleTest
- Throws:
IndexOutOfBoundsException
-
validate
Description copied from class:DictionaryComponentValidate and append errors and warnings.- Overrides:
validatein classFactBinding<Pattern>- Parameters:
errors- a List of error exceptions to append to.warnings- a List of warning exceptions to append to.- See Also:
-
getStoredPropertyNames
- Overrides:
getStoredPropertyNamesin classFactBinding<Pattern>- Returns:
- Array of property names which are persisted in the order in which they appear in the schema.
-
getPropertyNames
- Specified by:
getPropertyNamesin interfaceUnnamedComponent- Overrides:
getPropertyNamesin classFactBinding<Pattern>- Returns:
- Array of property names available.
-
getFormProperty
Get Form Property.- Returns:
- TranslatedProperty
-
getForm
Get Form describing whether this Pattern simple fact type or a subtable of fact types. See Pattern description orFORM_ -
setForm
Set Form toFORM_FACT_TYPE,FORM_FACT_PATH, orFORM_NESTED_TABLE. Note! For historical reasons, when you change to nested table, the fact type/path properties are copied to a newly created Pattern in thegetNestedTable(). -
getFormOptions
-
getFormSelected
public int getFormSelected() -
getTestFormProperty
Get TestForm Property.- Returns:
- TranslatedProperty
-
getTestForm
get type of test associated with the Pattern. see Pattern description or TEST_FORMsee TEST_FORM_ above -
setTestForm
set type of test associated with the Pattern. see Pattern description or TEST_FORMsee TEST_FORM_ above -
getTestFormOptions
-
getTestFormSelected
public int getTestFormSelected() -
getSimpleTestTableProperty
Get SimpleTestTable Property.- Returns:
- SimpleTest TableProperty
-
getSimpleTestTable
Get the table of tests for this Pattern. For use whenhasFactType(). SeeSimpleTest -
getExpressionProperty
Get Expression Property.- Returns:
- Expression DictionaryProperty
-
getExpression
-
getVariableProperty
Get Variable Property.- Overrides:
getVariablePropertyin classFactBinding<Pattern>- Returns:
- String SettableProperty
-
getVariable
- Overrides:
getVariablein classFactBinding<Pattern>
-
getVariable
- Overrides:
getVariablein classFactBinding<Pattern>
-
setVariable
- Overrides:
setVariablein classFactBinding<Pattern>
-
getOperatorProperty
Get Operator Property.- Returns:
- String SettableProperty
-
getOperatorTransProperty
Bug 33090834 Get Operator Translated Property.- Returns:
- TranslatedProperty
-
getOperator
Get Pattern operator. SeeOPERATOR_FOREACH. Defaults to OPERATOR_FOREACH -
setOperator
Set Pattern operator. SeeOPERATOR_FOREACH. Defaults to OPERATOR_FOREACH -
getOperatorOptions
-
getOperatorSelected
public int getOperatorSelected() -
getConnectiveProperty
Get Connective Property.- Returns:
- String SettableProperty
-
getConnective
Get connective (and/or) which combines this Pattern with the following Pattern, if any. SeeUtil.CONNECTIVE_AND. Defaults to CONNECTIVE_AND. -
setConnective
Set connective (and/or) which combines this Pattern with the following Pattern, if any. SeeUtil.CONNECTIVE_AND. Defaults to CONNECTIVE_AND. -
getConnectiveOptions
-
getConnectiveSelected
public int getConnectiveSelected() -
getNestedTableProperty
Get NestedTable Property.- Returns:
- Pattern TableProperty
-
getNestedTable
Get the the Pattern subtable when Form is FORM_NESTED_TABLE. Operators and conjunctions apply to the whole table. FactTypes are ignored in this form. -
getAggregteTableProperty
Get AggregateTable Property.- Returns:
- Aggregate TableProperty
-
getAggregateTable
Get the the Aggregate subtable when Operator is OPERATOR_AGGREGATE. -
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<Pattern>- Returns:
- the name of the pattern bind variable
-
getAlias
Description copied from class:DictionaryComponentGet alias of DictionaryComponent.- Specified by:
getAliasin interfaceScopedVariable- Overrides:
getAliasin classDictionaryComponent<Pattern>- Parameters:
translate- whether to get the translated alias- Returns:
- translated alias of the dictionary component, or alias if translation does not exist
-
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
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:
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
-
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<Pattern>
-
isAssignable
public boolean isAssignable()- Specified by:
isAssignablein interfaceScopedVariable
-
isVisible
public boolean isVisible() -
hasFactType
public boolean hasFactType()Does the pattern have a fact type? True iff form is FORM_FACT_TYPE or FORM_FACT_PATH- Specified by:
hasFactTypein classFactBinding<Pattern>- Returns:
- boolean
-