org.jboss.drools.guvnor.importgenerator
Class ImportFileGenerator

java.lang.Object
  extended by org.jboss.drools.guvnor.importgenerator.ImportFileGenerator
All Implemented Interfaces:
Constants

public class ImportFileGenerator
extends Object
implements Constants

a BRMS import file generator for drl and xml decision table files


Nested Class Summary
static class ImportFileGenerator.PackageObjectType
           
static class ImportFileGenerator.RuleObjectType
           
 
Field Summary
 
Fields inherited from interface org.jboss.drools.guvnor.importgenerator.Constants
DEFAULT_CREATOR, TEMPLATES_FOLDER, TEMPLATES_KAGENT_CHILD_INIT, TEMPLATES_KAGENT_PARENT_INIT, TEMPLATES_PACKAGE, TEMPLATES_PARENT, TEMPLATES_RULE, TEMPLATES_SNAPSHOT, TEMPLATES_SNAPSHOT_RULE
 
Constructor Summary
ImportFileGenerator()
           
 
Method Summary
 String generateImportFile(Map<String,PackageFile> packages)
          The main action method
 String generateKnowledgeAgentInitFile(Map<String,PackageFile> packages)
          returns a drools-5.0 formatted xml file for use with a drools 5.0 knowledge agent
static void main(String[] args)
           
 void run(CmdArgsParser options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportFileGenerator

public ImportFileGenerator()
Method Detail

generateImportFile

public String generateImportFile(Map<String,PackageFile> packages)
                          throws Exception
The main action method

Parameters:
packages -
Returns:
Throws:
Exception

generateKnowledgeAgentInitFile

public String generateKnowledgeAgentInitFile(Map<String,PackageFile> packages)
                                      throws Exception
returns a drools-5.0 formatted xml file for use with a drools 5.0 knowledge agent

Parameters:
packages -
Returns:
Throws:
Exception

run

public void run(CmdArgsParser options)
         throws Exception
Throws:
Exception

main

public static void main(String[] args)


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