Drools Guvnor - Guided Rule Templates Model 6.0.0.Alpha9

org.drools.guvnor.models.guided.template.backend
Class BRDRTXMLPersistence

java.lang.Object
  extended by org.drools.guvnor.models.commons.backend.rule.BRXMLPersistence
      extended by org.drools.guvnor.models.guided.template.backend.BRDRTXMLPersistence
All Implemented Interfaces:
BRLPersistence

public class BRDRTXMLPersistence
extends BRXMLPersistence

This class persists the template rule model to XML and back. This is the 'brl' xml format (Business Rule Language).


Field Summary
 
Fields inherited from class org.drools.guvnor.models.commons.backend.rule.BRXMLPersistence
xt
 
Method Summary
protected  RuleModel createEmptyModel()
           
static BRLPersistence getInstance()
           
 String marshal(RuleModel model)
           
 TemplateModel unmarshal(String xml)
           
 RuleModel unmarshalUsingDSL(String str, List<String> globals, String... dsls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static BRLPersistence getInstance()

marshal

public String marshal(RuleModel model)
Specified by:
marshal in interface BRLPersistence
Overrides:
marshal in class BRXMLPersistence

unmarshal

public TemplateModel unmarshal(String xml)
Specified by:
unmarshal in interface BRLPersistence
Overrides:
unmarshal in class BRXMLPersistence

unmarshalUsingDSL

public RuleModel unmarshalUsingDSL(String str,
                                   List<String> globals,
                                   String... dsls)
Specified by:
unmarshalUsingDSL in interface BRLPersistence
Overrides:
unmarshalUsingDSL in class BRXMLPersistence

createEmptyModel

protected RuleModel createEmptyModel()
Overrides:
createEmptyModel in class BRXMLPersistence

Drools Guvnor - Guided Rule Templates Model 6.0.0.Alpha9

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