Drools Workbench - Guided Rule Templates Model 6.1.0.Beta1

org.drools.workbench.models.guided.template.backend
Class RuleTemplateModelDRLPersistenceImpl

java.lang.Object
  extended by org.drools.workbench.models.commons.backend.rule.RuleModelDRLPersistenceImpl
      extended by org.drools.workbench.models.guided.template.backend.RuleTemplateModelDRLPersistenceImpl
All Implemented Interfaces:
RuleModelPersistence

public class RuleTemplateModelDRLPersistenceImpl
extends RuleModelDRLPersistenceImpl

This class persists a TemplateModel to DRL template


Nested Class Summary
static class RuleTemplateModelDRLPersistenceImpl.LHSPatternVisitor
           
static class RuleTemplateModelDRLPersistenceImpl.RHSActionVisitor
           
 
Nested classes/interfaces inherited from class org.drools.workbench.models.commons.backend.rule.RuleModelDRLPersistenceImpl
RuleModelDRLPersistenceImpl.RHSClassDependencyVisitor
 
Field Summary
 
Fields inherited from class org.drools.workbench.models.commons.backend.rule.RuleModelDRLPersistenceImpl
bindingsFields, bindingsPatterns, constraintValueBuilder, DEFAULT_DIALECT
 
Method Summary
static RuleModelPersistence getInstance()
           
protected  RuleTemplateModelDRLPersistenceImpl.LHSPatternVisitor getLHSPatternVisitor(boolean isDSLEnhanced, StringBuilder buf, String nestedIndentation, boolean isNegated, GeneratorContextFactory generatorContextFactory)
           
protected  RuleTemplateModelDRLPersistenceImpl.RHSActionVisitor getRHSActionVisitor(boolean isDSLEnhanced, StringBuilder buf, String indentation)
           
 String marshal(org.drools.workbench.models.datamodel.rule.RuleModel model)
           
protected  void marshalFooter(StringBuilder buf)
           
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)
           
 
Methods inherited from class org.drools.workbench.models.commons.backend.rule.RuleModelDRLPersistenceImpl
fixActionInsertFactBindings, marshalAttributes, marshalLHS, marshalMetadata, marshalPackageHeader, marshalRHS, unmarshal, unmarshalUsingDSL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RuleModelPersistence getInstance()

getLHSPatternVisitor

protected RuleTemplateModelDRLPersistenceImpl.LHSPatternVisitor getLHSPatternVisitor(boolean isDSLEnhanced,
                                                                                     StringBuilder buf,
                                                                                     String nestedIndentation,
                                                                                     boolean isNegated,
                                                                                     GeneratorContextFactory generatorContextFactory)
Overrides:
getLHSPatternVisitor in class RuleModelDRLPersistenceImpl

getRHSActionVisitor

protected RuleTemplateModelDRLPersistenceImpl.RHSActionVisitor getRHSActionVisitor(boolean isDSLEnhanced,
                                                                                   StringBuilder buf,
                                                                                   String indentation)
Overrides:
getRHSActionVisitor in class RuleModelDRLPersistenceImpl

marshal

public String marshal(org.drools.workbench.models.datamodel.rule.RuleModel model)
Specified by:
marshal in interface RuleModelPersistence
Overrides:
marshal in class RuleModelDRLPersistenceImpl

marshalRule

protected String marshalRule(org.drools.workbench.models.datamodel.rule.RuleModel model)
Overrides:
marshalRule in class RuleModelDRLPersistenceImpl

marshalRuleHeader

protected void marshalRuleHeader(org.drools.workbench.models.datamodel.rule.RuleModel model,
                                 StringBuilder buf)
Overrides:
marshalRuleHeader in class RuleModelDRLPersistenceImpl

marshalRuleName

protected String marshalRuleName(org.drools.workbench.models.datamodel.rule.RuleModel model)
Overrides:
marshalRuleName in class RuleModelDRLPersistenceImpl

marshalFooter

protected void marshalFooter(StringBuilder buf)
Overrides:
marshalFooter in class RuleModelDRLPersistenceImpl

Drools Workbench - Guided Rule Templates Model 6.1.0.Beta1

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.