org.drools.ide.common.server.util
Class BRDRLPersistence
java.lang.Object
org.drools.ide.common.server.util.BRDRLPersistence
- All Implemented Interfaces:
- BRLPersistence
- Direct Known Subclasses:
- GuidedDTBRDRLPersistence
public class BRDRLPersistence
- extends Object
- implements BRLPersistence
This class persists the rule model to DRL and back
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_DIALECT
public static final String DEFAULT_DIALECT
- See Also:
- Constant Field Values
constraintValueBuilder
protected DRLConstraintValueBuilder constraintValueBuilder
bindingsPatterns
protected Map<String,IFactPattern> bindingsPatterns
bindingsFields
protected Map<String,FieldConstraint> bindingsFields
BRDRLPersistence
protected BRDRLPersistence()
getInstance
public static BRLPersistence getInstance()
marshal
public String marshal(RuleModel model)
- Specified by:
marshal in interface BRLPersistence
marshalRule
protected String marshalRule(RuleModel model)
marshalFooter
protected void marshalFooter(StringBuilder buf)
marshalHeader
protected void marshalHeader(RuleModel model,
StringBuilder buf)
marshalRuleName
protected String marshalRuleName(RuleModel model)
unmarshal
public RuleModel unmarshal(String str)
- Specified by:
unmarshal in interface BRLPersistence
- See Also:
BRLPersistence.unmarshal(java.lang.String)
getLHSPatternVisitor
protected BRDRLPersistence.LHSPatternVisitor getLHSPatternVisitor(boolean isDSLEnhanced,
StringBuilder buf,
String nestedIndentation,
boolean isNegated)
getRHSActionVisitor
protected BRDRLPersistence.RHSActionVisitor getRHSActionVisitor(boolean isDSLEnhanced,
StringBuilder buf,
String indentation)
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.