org.drools.ide.common.server.util
Class BRDRLPersistence

java.lang.Object
  extended by org.drools.ide.common.server.util.BRDRLPersistence
All Implemented Interfaces:
BRLPersistence

public class BRDRLPersistence
extends Object
implements BRLPersistence

This class persists the rule model to DRL and back


Nested Class Summary
static class BRDRLPersistence.LHSPatternVisitor
           
static class BRDRLPersistence.RHSActionVisitor
           
static class BRDRLPersistence.RHSClassDependencyVisitor
           
 
Constructor Summary
protected BRDRLPersistence()
           
 
Method Summary
static BRLPersistence getInstance()
           
 String marshal(RuleModel model)
           
protected  void marshalFooter(StringBuilder buf)
           
protected  void marshalHeader(RuleModel model, StringBuilder buf)
           
protected  String marshalRule(RuleModel model)
           
protected  String marshalRuleName(RuleModel model)
           
 RuleModel unmarshal(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BRDRLPersistence

protected BRDRLPersistence()
Method Detail

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)


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