org.alfresco.repo.search
Class QueryCollectionImpl

java.lang.Object
  extended by org.alfresco.repo.search.QueryCollectionImpl
All Implemented Interfaces:
QueryCollection

public class QueryCollectionImpl
extends java.lang.Object
implements QueryCollection


Constructor Summary
QueryCollectionImpl(java.lang.String name, java.util.Map parameters, org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver)
           
 
Method Summary
 boolean containsParameterDefinition(org.alfresco.service.namespace.QName qName)
          Does this collection contain a query for the given QName?
 boolean containsQueryDefinition(org.alfresco.service.namespace.QName qName)
          Does this collection contain a query for the given QName?
static QueryCollection createQueryCollection(org.dom4j.Element element, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, org.alfresco.service.namespace.NamespacePrefixResolver nspr)
           
 java.lang.String getName()
          The name of the query collection
 org.alfresco.service.namespace.NamespacePrefixResolver getNamespacePrefixResolver()
          Return the mechanism that this query definition uses to map namespace prefixes to URIs.
 org.alfresco.service.cmr.search.QueryParameterDefinition getParameterDefinition(org.alfresco.service.namespace.QName qName)
          Get a query definition by QName.
 CannedQueryDef getQueryDefinition(org.alfresco.service.namespace.QName qName)
          Get a query definition by QName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryCollectionImpl

public QueryCollectionImpl(java.lang.String name,
                           java.util.Map parameters,
                           org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: QueryCollection
The name of the query collection

Specified by:
getName in interface QueryCollection
Returns:

containsQueryDefinition

public boolean containsQueryDefinition(org.alfresco.service.namespace.QName qName)
Description copied from interface: QueryCollection
Does this collection contain a query for the given QName?

Specified by:
containsQueryDefinition in interface QueryCollection
Returns:

getQueryDefinition

public CannedQueryDef getQueryDefinition(org.alfresco.service.namespace.QName qName)
Description copied from interface: QueryCollection
Get a query definition by QName.

Specified by:
getQueryDefinition in interface QueryCollection
Returns:

containsParameterDefinition

public boolean containsParameterDefinition(org.alfresco.service.namespace.QName qName)
Description copied from interface: QueryCollection
Does this collection contain a query for the given QName?

Specified by:
containsParameterDefinition in interface QueryCollection
Returns:

getParameterDefinition

public org.alfresco.service.cmr.search.QueryParameterDefinition getParameterDefinition(org.alfresco.service.namespace.QName qName)
Description copied from interface: QueryCollection
Get a query definition by QName.

Specified by:
getParameterDefinition in interface QueryCollection
Returns:

getNamespacePrefixResolver

public org.alfresco.service.namespace.NamespacePrefixResolver getNamespacePrefixResolver()
Description copied from interface: QueryCollection
Return the mechanism that this query definition uses to map namespace prefixes to URIs. A query may use a predefined set of prefixes for known URIs. I would be unwise to rely on the defaults.

Specified by:
getNamespacePrefixResolver in interface QueryCollection
Returns:

createQueryCollection

public static QueryCollection createQueryCollection(org.dom4j.Element element,
                                                    org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
                                                    org.alfresco.service.namespace.NamespacePrefixResolver nspr)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.