Drools Workbench - Guided Rule Templates Model 6.1.0.Beta1

org.drools.workbench.models.guided.template.backend
Class RuleTemplateModelXMLPersistenceImpl

java.lang.Object
  extended by 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
           
 
Constructor Summary
protected RuleTemplateModelXMLPersistenceImpl()
           
 
Method Summary
protected  TemplateModel createEmptyModel()
           
static RuleTemplateModelPersistence getInstance()
           
 String marshal(TemplateModel model)
           
 TemplateModel unmarshal(String xml)
           
 
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

RuleTemplateModelXMLPersistenceImpl

protected RuleTemplateModelXMLPersistenceImpl()
Method Detail

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()

Drools Workbench - Guided Rule Templates Model 6.1.0.Beta1

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