public class KnowledgePackageImp extends Object implements org.kie.internal.definition.KnowledgePackage, Externalizable
Constructor and Description |
---|
KnowledgePackageImp() |
KnowledgePackageImp(Package pkg) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Collection<org.kie.api.definition.type.FactType> |
getFactTypes() |
Function |
getFunction(String name)
Delegate method to retrieve a Function by its name.
|
Collection<String> |
getFunctionNames() |
Collection<org.kie.api.definition.rule.Global> |
getGlobalVariables() |
String |
getName() |
Collection<org.kie.api.definition.process.Process> |
getProcesses() |
Collection<org.kie.api.definition.rule.Query> |
getQueries() |
org.kie.api.definition.rule.Rule |
getRule(String name)
Delegate method to retrieve a Rule by its name.
|
Collection<org.kie.api.definition.rule.Rule> |
getRules() |
int |
hashCode() |
void |
readExternal(ObjectInput in) |
void |
removeFunction(String functionName)
Delegate method to retrieve a Rule by its name.
|
void |
removeRule(Rule rule)
Delegate method to remove a Rule by its name.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public Package pkg
public KnowledgePackageImp()
public KnowledgePackageImp(Package pkg)
public String getName()
getName
in interface org.kie.api.definition.KiePackage
public Collection<org.kie.api.definition.rule.Rule> getRules()
getRules
in interface org.kie.api.definition.KiePackage
public org.kie.api.definition.rule.Rule getRule(String name)
name
- the rule's nameorg.kie.rule.Package#getRule(java.lang.String)
public void removeRule(Rule rule)
rule
- the rule to be removedorg.kie.rule.Package#removeRule(org.kie.rule.Rule)
public Function getFunction(String name)
name
- the function's nameorg.kie.rule.Package#getFunctions()
public void removeFunction(String functionName)
functionName
- the function's nameorg.kie.rule.Package#removeFunction(java.lang.String)
public Collection<org.kie.api.definition.process.Process> getProcesses()
getProcesses
in interface org.kie.api.definition.KiePackage
public Collection<org.kie.api.definition.type.FactType> getFactTypes()
getFactTypes
in interface org.kie.api.definition.KiePackage
public Collection<org.kie.api.definition.rule.Query> getQueries()
getQueries
in interface org.kie.api.definition.KiePackage
public Collection<String> getFunctionNames()
getFunctionNames
in interface org.kie.api.definition.KiePackage
public Collection<org.kie.api.definition.rule.Global> getGlobalVariables()
getGlobalVariables
in interface org.kie.api.definition.KiePackage
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.