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
Fields Modifier and Type Field Description protected com.thoughtworks.xstream.XStreamxt
-
Constructor Summary
Constructors Modifier Constructor Description protectedRuleTemplateModelXMLPersistenceImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TemplateModelcreateEmptyModel()static RuleTemplateModelPersistencegetInstance()Stringmarshal(TemplateModel model)TemplateModelunmarshal(String xml)
-
-
-
Method Detail
-
getInstance
public static RuleTemplateModelPersistence getInstance()
-
marshal
public String marshal(TemplateModel model)
- Specified by:
marshalin interfaceRuleTemplateModelPersistence
-
unmarshal
public TemplateModel unmarshal(String xml)
- Specified by:
unmarshalin interfaceRuleTemplateModelPersistence
-
createEmptyModel
protected TemplateModel createEmptyModel()
-
-