public class RuleAdapter extends Object implements Rule
KnowledgeDefinition.KnowledgeType| Constructor and Description |
|---|
RuleAdapter(org.kie.api.definition.rule.Rule delegate) |
| Modifier and Type | Method and Description |
|---|---|
static List<Rule> |
adaptRules(Collection<org.kie.api.definition.rule.Rule> rules) |
boolean |
equals(Object obj) |
String |
getId() |
KnowledgeDefinition.KnowledgeType |
getKnowledgeType() |
String |
getMetaAttribute(String key)
Returns the value of the meta attribute identified by the "key"
|
Map<String,Object> |
getMetaAttributes()
Returns an immutable Map
|
Map<String,Object> |
getMetaData()
Returns an immutable Map
|
String |
getName()
Returns this rule's name.
|
String |
getNamespace() |
String |
getPackageName()
Returns the package name (namespace) this rule is tied to.
|
int |
hashCode() |
Collection<String> |
listMetaAttributes()
This method is deprecated.
|
public String getPackageName()
RulegetPackageName in interface Rulepublic Map<String,Object> getMetaData()
RulegetMetaData in interface Rulepublic Collection<String> listMetaAttributes()
RuleRule.getMetaAttributes() instead.listMetaAttributes in interface Rulepublic Map<String,Object> getMetaAttributes()
RulegetMetaAttributes in interface Rulepublic String getMetaAttribute(String key)
RulegetMetaAttribute in interface Rulekey - the meta attribute keypublic KnowledgeDefinition.KnowledgeType getKnowledgeType()
getKnowledgeType in interface KnowledgeDefinitionpublic String getNamespace()
getNamespace in interface KnowledgeDefinitionpublic String getId()
getId in interface KnowledgeDefinitionpublic static List<Rule> adaptRules(Collection<org.kie.api.definition.rule.Rule> rules)
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.