org.drools.workbench.models.guided.template.backend
Class RuleTemplateModelXMLPersistenceImpl
java.lang.Object
org.drools.workbench.models.guided.template.backend.RuleTemplateModelXMLPersistenceImpl
- All Implemented Interfaces:
- RuleTemplateModelPersistence
public class RuleTemplateModelXMLPersistenceImpl
- extends Object
- implements RuleTemplateModelPersistence
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
RuleTemplateModelXMLPersistenceImpl
protected RuleTemplateModelXMLPersistenceImpl()
getInstance
public static RuleTemplateModelPersistence getInstance()
marshal
public String marshal(TemplateModel model)
- Specified by:
marshal in interface RuleTemplateModelPersistence
unmarshal
public TemplateModel unmarshal(String xml)
- Specified by:
unmarshal in interface RuleTemplateModelPersistence
createEmptyModel
protected TemplateModel createEmptyModel()
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.