Knowledge API Legacy5 Adapter 6.0.0.Beta5

org.drools.impl.adapters
Class QueryAdapter

java.lang.Object
  extended by org.drools.impl.adapters.QueryAdapter
All Implemented Interfaces:
KnowledgeDefinition, Query

public class QueryAdapter
extends Object
implements Query


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.drools.definition.KnowledgeDefinition
KnowledgeDefinition.KnowledgeType
 
Constructor Summary
QueryAdapter(org.kie.api.definition.rule.Query delegate)
           
 
Method Summary
static List<Query> adaptQueries(Collection<org.kie.api.definition.rule.Query> queries)
           
 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 of all meta attributes associated with this query object.
 Map<String,Object> getMetaData()
          Returns an immutable Map of all meta data attributes associated with this query object.
 String getName()
          Returns this query's name.
 String getNamespace()
           
 String getPackageName()
          Returns the package name (namespace) this query is tied to.
 Collection<String> listMetaAttributes()
          This method is deprecated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryAdapter

public QueryAdapter(org.kie.api.definition.rule.Query delegate)
Method Detail

getPackageName

public String getPackageName()
Description copied from interface: Query
Returns the package name (namespace) this query is tied to.

Specified by:
getPackageName in interface Query
Returns:
the package name.

getName

public String getName()
Description copied from interface: Query
Returns this query's name.

Specified by:
getName in interface Query
Returns:
the query name

getMetaData

public Map<String,Object> getMetaData()
Description copied from interface: Query
Returns an immutable Map of all meta data attributes associated with this query object.

Specified by:
getMetaData in interface Query
Returns:
an immutable Map of meta data attributes.

listMetaAttributes

public Collection<String> listMetaAttributes()
Description copied from interface: Query
This method is deprecated. Please use Query.getMetaAttributes() instead.

Specified by:
listMetaAttributes in interface Query
Returns:
a collection with all the meta attribute keys associated with this Query.

getMetaAttributes

public Map<String,Object> getMetaAttributes()
Description copied from interface: Query
Returns an immutable Map of all meta attributes associated with this query object.

Specified by:
getMetaAttributes in interface Query
Returns:
an immutable Map of meta attributes.

getMetaAttribute

public String getMetaAttribute(String key)
Description copied from interface: Query
Returns the value of the meta attribute identified by the "key"

Specified by:
getMetaAttribute in interface Query
Parameters:
key - the meta attribute key
Returns:
the meta attribute value or null if there is no value for that key.

getKnowledgeType

public KnowledgeDefinition.KnowledgeType getKnowledgeType()
Specified by:
getKnowledgeType in interface KnowledgeDefinition

getNamespace

public String getNamespace()
Specified by:
getNamespace in interface KnowledgeDefinition

getId

public String getId()
Specified by:
getId in interface KnowledgeDefinition

adaptQueries

public static List<Query> adaptQueries(Collection<org.kie.api.definition.rule.Query> queries)

Knowledge API Legacy5 Adapter 6.0.0.Beta5

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