All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fiirs.drools.knowledge.packager.KnowledgeEntryBuilder Maven / Gradle / Ivy

Go to download

This is a Maven plugin that will JBoss Drools 5.2 knowledge files and compile them to a Drools PKG file

There is a newer version: 0.0.6
Show newest version
package org.fiirs.drools.knowledge.packager;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

public class KnowledgeEntryBuilder {
	public static String WILD_CARD_PATTERN = "(\\*\\*)|(\\*)";
	private List jarFiles;
	private List patternStrings;
	
	public KnowledgeEntryBuilder() {
		jarFiles = new ArrayList();
		patternStrings = new ArrayList();
	}
	
	public KnowledgeEntryBuilder addJar(String jarFile) {
		jarFiles.add(jarFile);
		return this;
	}
	
	public KnowledgeEntryBuilder addPatternStr(String patternString) {
		patternStrings.add(patternString);
		return this;
	}
	
	
	public List getJarFiles() {
		return jarFiles;
	}

	public List getPatternStrings() {
		return patternStrings;
	}

	public KnowledgeEntries build() throws IOException {
		return new KnowledgeEntries(this);
	}	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy