org.drools.guvnor.models.commons.backend.rule
Class BRXMLPersistence
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xt
protected com.thoughtworks.xstream.XStream xt
BRXMLPersistence
protected BRXMLPersistence()
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()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.