Interface ExpressionService
- All Known Implementing Classes:
StandardExpressionService
A service to create/modify
Supported API: true
Extendable: false
Expressionable and ExpressionMemberLink objects.
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionassignDependentExpressions(Map<Expressionable, wt.option.ExpressionData> expressionableToExprDataMap, OptionSet optionset) API to assign multiple dependent Part, Part Usage, or Part Occurrence expressions.assignIndependentExpression(wt.option.IndependentExpressionAssignable expressionAssignable, IndependentAssignedExpression expressionable, OptionSet optionset, wt.option.ExpressionData expressionSpec) API to assign an individual expression, initialize IndependentAssignedExpression and call this API if an existing IndependentAssignedExpression is passed, it will update the object with the new expression.assignIndependentExpressions(Map<wt.option.IndependentExpressionAssignable, Map<IndependentAssignedExpression, wt.option.ExpressionData>> expressionableToExprDataMap, OptionSet optionset) API to assign multiple independent Part, Part Usage, or Part Occurrence expressions.voidassignLocalExpression(WTCollection expressionables, ComplexExpressionData expressionSpec, OptionSet optionset, WTContainerRef containerRef) API to assign a Local Expression to the ExpressionAssignable.assignLocalExpression(Expressionable expressionable, ComplexExpressionData expressionSpec, OptionSet optionset, WTContainerRef containerRef) API to assign a Local Expression to the ExpressionAssignable.assignLocalExpression(Expressionable expressionable, ComplexExpressionData expressionSpec, OptionSet optionset, WTContainerRef containerRef, boolean checkMergedChoices) API to assign a Local Expression to the ExpressionAssignable.assignLocalExpression(Expressionable expressionable, ComplexExpressionData expressionSpec, OptionSet optionset, WTContainerRef containerRef, boolean checkMergedChoices, boolean isDisplayFormatOverriden) API to assign a Local Expression to the ExpressionAssignable.getExpressionMembers(Expressionable expressionable, OptionSet optionset) API to get the ExpressionMembers for an Expressionable.
-
Method Details
-
getExpressionMembers
Map<String,wt.option.ExpressionMember> getExpressionMembers(Expressionable expressionable, OptionSet optionset) throws WTException API to get the ExpressionMembers for an Expressionable.
Supported API: true- Parameters:
expressionable- the Expressionableoptionset- the OptionSet, if not null, the expression members will be evaluated against this OptionSet- Returns:
- Mapinvalid input: '<'String, ExpressionMember>
- Throws:
WTException
-
assignLocalExpression
Expressionable assignLocalExpression(Expressionable expressionable, ComplexExpressionData expressionSpec, OptionSet optionset, WTContainerRef containerRef) throws WTException API to assign a Local Expression to the ExpressionAssignable.
Supported API: true- Parameters:
expressionable- the ExpressionableexpressionSpec- the expression dataoptionset- the OptionSetcontainerRef- the container reference- Returns:
- the ExpressionAssignable
- Throws:
WTException
-
assignLocalExpression
Expressionable assignLocalExpression(Expressionable expressionable, ComplexExpressionData expressionSpec, OptionSet optionset, WTContainerRef containerRef, boolean checkMergedChoices) throws WTException API to assign a Local Expression to the ExpressionAssignable.
Supported API: true- Parameters:
expressionable- the ExpressionableexpressionSpec- the expression dataoptionset- the OptionSetcontainerRef- the container referencecheckMergedChoices- a flag to verify that the expression has merged choices- Returns:
- the ExpressionAssignable
- Throws:
WTException
-
assignLocalExpression
Expressionable assignLocalExpression(Expressionable expressionable, ComplexExpressionData expressionSpec, OptionSet optionset, WTContainerRef containerRef, boolean checkMergedChoices, boolean isDisplayFormatOverriden) throws WTException API to assign a Local Expression to the ExpressionAssignable.
Supported API: true- Parameters:
expressionable- the ExpressionableexpressionSpec- the expression dataoptionset- the OptionSetcontainerRef- the container referencecheckMergedChoices- a flag to verify that the expression has merged choicesisDisplayFormatOverriden- -flag for overriding choice display format preference and use number format- Returns:
- the ExpressionAssignable
- Throws:
WTException
-
assignLocalExpression
void assignLocalExpression(WTCollection expressionables, ComplexExpressionData expressionSpec, OptionSet optionset, WTContainerRef containerRef) throws WTException API to assign a Local Expression to the ExpressionAssignable.
Supported API: true- Parameters:
expressionables- the ExpressionableexpressionSpec- the expression dataoptionset- the OptionSet- Throws:
WTException
-
assignIndependentExpression
IndependentAssignedExpression assignIndependentExpression(wt.option.IndependentExpressionAssignable expressionAssignable, IndependentAssignedExpression expressionable, OptionSet optionset, wt.option.ExpressionData expressionSpec) throws WTException API to assign an individual expression, initialize IndependentAssignedExpression and call this API if an existing IndependentAssignedExpression is passed, it will update the object with the new expression.
Supported API: true- Parameters:
expressionAssignable- the ExpressionAssignableexpressionable- the Expressionableoptionset- the OptionSetexpressionSpec- the expression data- Returns:
- the IndependentAssignedExpression
- Throws:
WTException
-
assignDependentExpressions
WTArrayList assignDependentExpressions(Map<Expressionable, wt.option.ExpressionData> expressionableToExprDataMap, OptionSet optionset) throws WTExceptionAPI to assign multiple dependent Part, Part Usage, or Part Occurrence expressions. This API associates basic or advanced expression to the given Part, Part Usage, or Part Occurrence provided in the map as an argument. All the expression assignments must be successful or the entire set will roll back
Supported API: true- Parameters:
Map- invalid input: '<'Expressionable,ExpressionData> Map of Part, Part Usage, or Part Occurrence as key invalid input: '&' ExpressionData as value.(BasicExpressionData or ComplexExpressionData)optionSet- the OptionSet- Returns:
- WTArrayList
Updated Part, Part Usage, or Part Occurrence - Throws:
WTException
-
assignIndependentExpressions
WTArrayList assignIndependentExpressions(Map<wt.option.IndependentExpressionAssignable, Map<IndependentAssignedExpression, throws WTExceptionwt.option.ExpressionData>> expressionableToExprDataMap, OptionSet optionset) API to assign multiple independent Part, Part Usage, or Part Occurrence expressions. This API associates independent expressions to the given Part, Part Usage, or Part Occurrence provided in the map as an argument. All the expression assignments must be successful or the entire set will roll back
Supported API: true- Parameters:
Map- invalid input: '<'IndependentExpressionAssignable,Mapinvalid input: '<'IndependentAssignedExpression, ExpressionData>> Map of Part, Part Usage, or Part Occurrence as key invalid input: '&' Map invalid input: '<'IndependentAssignedExpression, ExpressionData> as value. The inner map will hold IndependentAssignedExpression as key(null in case new expression to be created) and expressionData as value(BasicExpressionData or ComplexExpressionData)optionSet- the OptionSet- Returns:
- WTArrayList
Updated independent assigned expressions. - Throws:
WTException
-