Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.impl;
 
import  org.drools.compiler.compiler.PackageBuilder;
import static org.drools.impl.adapters.AdapterUtil.adaptResultSeverity;
import static org.drools.impl.adapters.KnowledgePackageAdapter.adaptKnowledgePackages;
public class KnowledgeBuilderImpl implements KnowledgeBuilder {
    private final org.drools.compiler.builder.impl.KnowledgeBuilderImpl delegate;
    public KnowledgeBuilderImpl(PackageBuilder pkgBuilder) {
         = new org.drools.compiler.builder.impl.KnowledgeBuilderImpl(pkgBuilder);
    }
    public void add(Resource resourceResourceType type) {
        .add(((ResourceAdapter)resource).getDelegate(), type.toKieResourceType());
    }
    public void add(Resource resourceResourceType typeResourceConfiguration configuration) {
        .add(((ResourceAdapter)resource).getDelegate(), type.toKieResourceType(), null);
    }
        return adaptKnowledgePackages(.getKnowledgePackages());
    }
    public KnowledgeBase newKnowledgeBase() {
        return new KnowledgeBaseAdapter(.newKnowledgeBase());
    }
    public boolean hasErrors() {
        return .hasErrors();
    }
    public KnowledgeBuilderErrors getErrors() {
        return new KnowledgeBuilderErrorsAdapter(.getErrors());
    }
    public KnowledgeBuilderResults getResults(ResultSeverity... severities) {
        return new KnowledgeBuilderResultsAdapter(.getResults(adaptResultSeverity(severities)));
    }
    public boolean hasResults(ResultSeverity... severities) {
        return .hasResults(adaptResultSeverity(severities));
    }
    public void undo() {
        .undo();
    }
    public CompositeKnowledgeBuilder batch() {
        return new CompositeKnowledgeBuilderAdapter(.batch());
    }
New to GrepCode? Check out our FAQ X