Knowledge API Legacy5 Adapter 6.0.0.Beta5

org.drools.impl.adapters
Class KnowledgePackageAdapter

java.lang.Object
  extended by org.drools.impl.adapters.KnowledgePackageAdapter
All Implemented Interfaces:
KnowledgePackage

public class KnowledgePackageAdapter
extends Object
implements KnowledgePackage


Constructor Summary
KnowledgePackageAdapter(org.kie.internal.definition.KnowledgePackage delegate)
           
 
Method Summary
static List<KnowledgePackage> adaptKnowledgePackages(Collection<org.kie.internal.definition.KnowledgePackage> pkgs)
           
static Collection<org.kie.internal.definition.KnowledgePackage> fromKiePackages(Collection<KnowledgePackage> pkgs)
           
 org.kie.internal.definition.KnowledgePackage getDelegate()
           
 Collection<FactType> getFactTypes()
          Return the fact types declared in this package The collection is immutable.
 Collection<String> getFunctionNames()
          Return the names of the functions defined in this package.
 Collection<Global> getGlobalVariables()
          Return the names of the globals defined in this package.
 String getName()
          The namespace for this package
 Collection<Process> getProcesses()
          Return the process definitions for this package.
 Collection<Query> getQueries()
          Return the query definitions for this package.
 Collection<Rule> getRules()
          Return the rule definitions for this package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KnowledgePackageAdapter

public KnowledgePackageAdapter(org.kie.internal.definition.KnowledgePackage delegate)
Method Detail

getName

public String getName()
Description copied from interface: KnowledgePackage
The namespace for this package

Specified by:
getName in interface KnowledgePackage
Returns:

getRules

public Collection<Rule> getRules()
Description copied from interface: KnowledgePackage
Return the rule definitions for this package. The collection is immutable.

Specified by:
getRules in interface KnowledgePackage
Returns:

getProcesses

public Collection<Process> getProcesses()
Description copied from interface: KnowledgePackage
Return the process definitions for this package. The collection is immutable.

Specified by:
getProcesses in interface KnowledgePackage
Returns:
a Collection of Processes for this package.

getFactTypes

public Collection<FactType> getFactTypes()
Description copied from interface: KnowledgePackage
Return the fact types declared in this package The collection is immutable.

Specified by:
getFactTypes in interface KnowledgePackage
Returns:
a Collection of FactType for this package

getQueries

public Collection<Query> getQueries()
Description copied from interface: KnowledgePackage
Return the query definitions for this package. The collection is immutable.

Specified by:
getQueries in interface KnowledgePackage
Returns:
a Collection of Query for this package

getFunctionNames

public Collection<String> getFunctionNames()
Description copied from interface: KnowledgePackage
Return the names of the functions defined in this package. The collection is immutable.

Specified by:
getFunctionNames in interface KnowledgePackage
Returns:
a Collection of Function names for this package

getGlobalVariables

public Collection<Global> getGlobalVariables()
Description copied from interface: KnowledgePackage
Return the names of the globals defined in this package. The collection is immutable.

Specified by:
getGlobalVariables in interface KnowledgePackage
Returns:
a Collection of Global names for this package

getDelegate

public org.kie.internal.definition.KnowledgePackage getDelegate()

adaptKnowledgePackages

public static List<KnowledgePackage> adaptKnowledgePackages(Collection<org.kie.internal.definition.KnowledgePackage> pkgs)

fromKiePackages

public static Collection<org.kie.internal.definition.KnowledgePackage> fromKiePackages(Collection<KnowledgePackage> pkgs)

Knowledge API Legacy5 Adapter 6.0.0.Beta5

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