public class QueryAdapter extends Object implements Query
KnowledgeDefinition.KnowledgeType
Constructor and Description |
---|
QueryAdapter(org.kie.api.definition.rule.Query delegate) |
Modifier and Type | Method and Description |
---|---|
static List<Query> |
adaptQueries(Collection<org.kie.api.definition.rule.Query> queries) |
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 query's name.
|
String |
getNamespace() |
String |
getPackageName()
Returns the package name (namespace) this query is tied to.
|
int |
hashCode() |
Collection<String> |
listMetaAttributes()
This method is deprecated.
|
public String getPackageName()
Query
getPackageName
in interface Query
public Map<String,Object> getMetaData()
Query
getMetaData
in interface Query
public Collection<String> listMetaAttributes()
Query
Query.getMetaAttributes()
instead.listMetaAttributes
in interface Query
public Map<String,Object> getMetaAttributes()
Query
getMetaAttributes
in interface Query
public String getMetaAttribute(String key)
Query
getMetaAttribute
in interface Query
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<Query> adaptQueries(Collection<org.kie.api.definition.rule.Query> queries)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.