org.drools.eclipse.wizard.rule
Class DRLGenerator

java.lang.Object
  extended by org.drools.eclipse.wizard.rule.DRLGenerator

public class DRLGenerator
extends Object

This will generate DRL bits and bobs based on various templates. For use by the wizards only. TODO: move this to string template (as it is being used elsewhere in drools)


Constructor Summary
DRLGenerator()
           
 
Method Summary
 InputStream generatePackage(String packageName, boolean functions, boolean expander, InputStream template)
           
 InputStream generateRule(String packageName, InputStream template)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DRLGenerator

public DRLGenerator()
Method Detail

generateRule

public InputStream generateRule(String packageName,
                                InputStream template)
                         throws IOException
Throws:
IOException

generatePackage

public InputStream generatePackage(String packageName,
                                   boolean functions,
                                   boolean expander,
                                   InputStream template)
                            throws IOException
Throws:
IOException


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