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()
Rule
getPackageName
in interface Rule
public Map<String,Object> getMetaData()
Rule
getMetaData
in interface Rule
public Collection<String> listMetaAttributes()
Rule
Rule.getMetaAttributes()
instead.listMetaAttributes
in interface Rule
public Map<String,Object> getMetaAttributes()
Rule
getMetaAttributes
in interface Rule
public String getMetaAttribute(String key)
Rule
getMetaAttribute
in interface Rule
key
- the meta attribute keypublic KnowledgeDefinition.KnowledgeType getKnowledgeType()
getKnowledgeType
in interface KnowledgeDefinition
public String getNamespace()
getNamespace
in interface KnowledgeDefinition
public String getId()
getId
in interface KnowledgeDefinition
public static List<Rule> adaptRules(Collection<org.kie.api.definition.rule.Rule> rules)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.