public abstract class AbstractDMODataManagementStrategy extends AbstractDataManagementStrategy
AbstractDataManagementStrategy.ResultHolder
Modifier and Type | Field and Description |
---|---|
protected String |
packageName |
factModelTreeHolder, model
SIMPLE_CLASSES_MAP
Constructor and Description |
---|
AbstractDMODataManagementStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
aggregatorCallbackMethod(TestToolsView.Presenter testToolsPresenter,
int expectedElements,
SortedMap<String,FactModelTree> factTypeFieldsMap,
ScenarioSimulationContext context,
FactModelTree result,
List<String> simpleJavaTypes,
GridWidget gridWidget)
Actual code of the aggregatorCallback; isolated for testing
|
FactModelTree |
getFactModelTree(String factName,
org.kie.soup.project.datamodel.oracle.ModelField[] modelFields)
Create a
FactModelTree for a given factName populating it with the given
ModelField[] |
protected abstract List<String> |
getFactTypes() |
protected abstract String |
getFQCNByFactName(String factName) |
protected abstract String |
getParametricFieldType(String factName,
String propertyName) |
protected abstract void |
manageDataObjects(List<String> dataObjectsTypes,
TestToolsView.Presenter testToolsPresenter,
int expectedElements,
SortedMap<String,FactModelTree> dataObjectsFieldsMap,
ScenarioSimulationContext context,
List<String> simpleJavaTypes,
GridWidget gridWidget) |
void |
populateFactModelTree(FactModelTree toPopulate,
SortedMap<String,FactModelTree> factTypeFieldsMap)
This method replace a simple property from the given
FactModelTree and replace it with
an expandable property FactModelTree from the given factTypeFieldsMap, if a matching
element exists. |
void |
populateGenericTypeMap(Map<String,List<String>> toPopulate,
String factName,
String propertyName,
boolean isList)
Populate the given
Map with the generic type(s) of given property. |
void |
populateTestTools(TestToolsView.Presenter testToolsPresenter,
ScenarioSimulationContext context,
GridWidget gridWidget) |
protected abstract boolean |
skipPopulateTestTools() |
getInstanceMap, getPropertiesToHide, getPropertiesToHide, getSimpleClassFactModelTree, setModel, storeData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isADataType, manageScenarioSimulationModelContent
protected String packageName
protected abstract String getParametricFieldType(String factName, String propertyName)
protected abstract boolean skipPopulateTestTools()
protected abstract void manageDataObjects(List<String> dataObjectsTypes, TestToolsView.Presenter testToolsPresenter, int expectedElements, SortedMap<String,FactModelTree> dataObjectsFieldsMap, ScenarioSimulationContext context, List<String> simpleJavaTypes, GridWidget gridWidget)
public void populateTestTools(TestToolsView.Presenter testToolsPresenter, ScenarioSimulationContext context, GridWidget gridWidget)
public FactModelTree getFactModelTree(String factName, org.kie.soup.project.datamodel.oracle.ModelField[] modelFields)
FactModelTree
for a given factName populating it with the given
ModelField[]
factName
- modelFields
- public void populateGenericTypeMap(Map<String,List<String>> toPopulate, String factName, String propertyName, boolean isList)
Map
with the generic type(s) of given property.
If isList
is false, the first generic will be java.lang.StringtoPopulate
- factName
- propertyName
- isList
- public void aggregatorCallbackMethod(TestToolsView.Presenter testToolsPresenter, int expectedElements, SortedMap<String,FactModelTree> factTypeFieldsMap, ScenarioSimulationContext context, FactModelTree result, List<String> simpleJavaTypes, GridWidget gridWidget)
testToolsPresenter
- expectedElements
- factTypeFieldsMap
- context
- result
- pass null
if there is not any complex data object but only simple onessimpleJavaTypes
- public void populateFactModelTree(FactModelTree toPopulate, SortedMap<String,FactModelTree> factTypeFieldsMap)
FactModelTree
and replace it with
an expandable property FactModelTree
from the given factTypeFieldsMap, if a matching
element exists.toPopulate
- factTypeFieldsMap
- Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.