public class RuleModelDRLPersistenceImpl extends Object implements RuleModelPersistence
Modifier and Type | Class and Description |
---|---|
static class |
RuleModelDRLPersistenceImpl.LHSPatternVisitor |
static class |
RuleModelDRLPersistenceImpl.RHSActionVisitor |
static class |
RuleModelDRLPersistenceImpl.RHSClassDependencyVisitor |
static class |
RuleModelDRLPersistenceImpl.RuleModelUnmarshallingException |
Modifier and Type | Field and Description |
---|---|
protected Map<String,org.drools.workbench.models.datamodel.rule.FieldConstraint> |
bindingsFields |
protected Map<String,org.drools.workbench.models.datamodel.rule.IFactPattern> |
bindingsPatterns |
protected org.drools.workbench.models.datamodel.rule.builder.DRLConstraintValueBuilder |
constraintValueBuilder |
Modifier | Constructor and Description |
---|---|
protected |
RuleModelDRLPersistenceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
fixActionInsertFactBindings(org.drools.workbench.models.datamodel.rule.IAction[] rhs) |
static RuleModelPersistence |
getInstance() |
protected RuleModelDRLPersistenceImpl.LHSPatternVisitor |
getLHSPatternVisitor(boolean isDSLEnhanced,
StringBuilder buf,
String nestedIndentation,
boolean isNegated,
LHSGeneratorContextFactory generatorContextFactory) |
protected RuleModelDRLPersistenceImpl.RHSActionVisitor |
getRHSActionVisitor(boolean isDSLEnhanced,
StringBuilder buf,
String indentation,
RHSGeneratorContextFactory generatorContextFactory) |
org.drools.workbench.models.datamodel.rule.RuleModel |
getSimpleRuleModel(String drl) |
String |
marshal(org.drools.workbench.models.datamodel.rule.RuleModel model) |
protected void |
marshalAttributes(StringBuilder buf,
org.drools.workbench.models.datamodel.rule.RuleModel model)
Marshal model attributes
|
protected void |
marshalFooter(StringBuilder buf) |
protected void |
marshalLHS(StringBuilder buf,
org.drools.workbench.models.datamodel.rule.RuleModel model,
boolean isDSLEnhanced,
LHSGeneratorContextFactory generatorContextFactory)
Marshal LHS patterns
|
protected void |
marshalMetadata(StringBuilder buf,
org.drools.workbench.models.datamodel.rule.RuleModel model)
Marshal model metadata
|
protected void |
marshalPackageHeader(org.drools.workbench.models.datamodel.rule.RuleModel model,
StringBuilder buf) |
protected void |
marshalRHS(StringBuilder buf,
org.drools.workbench.models.datamodel.rule.RuleModel model,
boolean isDSLEnhanced,
RHSGeneratorContextFactory generatorContextFactory) |
protected String |
marshalRule(org.drools.workbench.models.datamodel.rule.RuleModel model) |
protected void |
marshalRuleHeader(org.drools.workbench.models.datamodel.rule.RuleModel model,
StringBuilder buf) |
protected String |
marshalRuleName(org.drools.workbench.models.datamodel.rule.RuleModel model) |
org.drools.workbench.models.datamodel.rule.RuleModel |
unmarshal(String str,
List<String> globals,
org.drools.workbench.models.datamodel.oracle.PackageDataModelOracle dmo) |
org.drools.workbench.models.datamodel.rule.RuleModel |
unmarshalUsingDSL(String str,
List<String> globals,
org.drools.workbench.models.datamodel.oracle.PackageDataModelOracle dmo,
String... dsls) |
protected org.drools.workbench.models.datamodel.rule.builder.DRLConstraintValueBuilder constraintValueBuilder
protected Map<String,org.drools.workbench.models.datamodel.rule.IFactPattern> bindingsPatterns
public static RuleModelPersistence getInstance()
public String marshal(org.drools.workbench.models.datamodel.rule.RuleModel model)
marshal
in interface RuleModelPersistence
protected String marshalRule(org.drools.workbench.models.datamodel.rule.RuleModel model)
protected void fixActionInsertFactBindings(org.drools.workbench.models.datamodel.rule.IAction[] rhs)
protected void marshalFooter(StringBuilder buf)
protected void marshalPackageHeader(org.drools.workbench.models.datamodel.rule.RuleModel model, StringBuilder buf)
protected void marshalRuleHeader(org.drools.workbench.models.datamodel.rule.RuleModel model, StringBuilder buf)
protected String marshalRuleName(org.drools.workbench.models.datamodel.rule.RuleModel model)
protected void marshalAttributes(StringBuilder buf, org.drools.workbench.models.datamodel.rule.RuleModel model)
buf
- model
- protected void marshalMetadata(StringBuilder buf, org.drools.workbench.models.datamodel.rule.RuleModel model)
buf
- model
- protected void marshalLHS(StringBuilder buf, org.drools.workbench.models.datamodel.rule.RuleModel model, boolean isDSLEnhanced, LHSGeneratorContextFactory generatorContextFactory)
buf
- model
- protected RuleModelDRLPersistenceImpl.LHSPatternVisitor getLHSPatternVisitor(boolean isDSLEnhanced, StringBuilder buf, String nestedIndentation, boolean isNegated, LHSGeneratorContextFactory generatorContextFactory)
protected void marshalRHS(StringBuilder buf, org.drools.workbench.models.datamodel.rule.RuleModel model, boolean isDSLEnhanced, RHSGeneratorContextFactory generatorContextFactory)
protected RuleModelDRLPersistenceImpl.RHSActionVisitor getRHSActionVisitor(boolean isDSLEnhanced, StringBuilder buf, String indentation, RHSGeneratorContextFactory generatorContextFactory)
public org.drools.workbench.models.datamodel.rule.RuleModel unmarshal(String str, List<String> globals, org.drools.workbench.models.datamodel.oracle.PackageDataModelOracle dmo)
unmarshal
in interface RuleModelPersistence
RuleModelPersistence.unmarshal(String, List, PackageDataModelOracle)
public org.drools.workbench.models.datamodel.rule.RuleModel unmarshalUsingDSL(String str, List<String> globals, org.drools.workbench.models.datamodel.oracle.PackageDataModelOracle dmo, String... dsls)
unmarshalUsingDSL
in interface RuleModelPersistence
public org.drools.workbench.models.datamodel.rule.RuleModel getSimpleRuleModel(String drl)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.