Drools Guvnor - Common Model 6.0.0.Beta1

org.drools.guvnor.models.commons.backend.rule
Class BRXMLPersistence

java.lang.Object
  extended by org.drools.guvnor.models.commons.backend.rule.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).


Field Summary
protected  com.thoughtworks.xstream.XStream xt
           
 
Constructor Summary
protected BRXMLPersistence()
           
 
Method Summary
protected  RuleModel createEmptyModel()
           
static BRLPersistence getInstance()
           
 String marshal(RuleModel model)
           
 RuleModel 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
 

Field Detail

xt

protected com.thoughtworks.xstream.XStream xt
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

unmarshalUsingDSL

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

createEmptyModel

protected RuleModel createEmptyModel()

Drools Guvnor - Common Model 6.0.0.Beta1

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