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

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

public class BRXMLPersistence
extends Object
implements BRLPersistence

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


Constructor Summary
protected BRXMLPersistence()
           
 
Method Summary
protected  RuleModel createEmptyModel()
           
static BRLPersistence getInstance()
           
 String marshal(RuleModel model)
           
 RuleModel unmarshal(String xml)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BRXMLPersistence

protected BRXMLPersistence()
Method Detail

getInstance

public static BRLPersistence getInstance()

marshal

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

unmarshal

public RuleModel unmarshal(String xml)
Specified by:
unmarshal in interface BRLPersistence

createEmptyModel

protected RuleModel createEmptyModel()


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