org.drools.guvnor.server.util
Class BRDRTXMLPersistence

java.lang.Object
  extended by org.drools.ide.common.server.util.BRXMLPersistence
      extended by org.drools.guvnor.server.util.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).


Method Summary
protected  RuleModel createEmptyModel()
           
static BRLPersistence getInstance()
           
 String marshal(RuleModel model)
           
 TemplateModel unmarshal(String xml)
           
 
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

createEmptyModel

protected RuleModel createEmptyModel()
Overrides:
createEmptyModel in class BRXMLPersistence


Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.