org.alfresco.repo.search
Class CannedQueryDefImpl

java.lang.Object
  extended by org.alfresco.repo.search.CannedQueryDefImpl
All Implemented Interfaces:
CannedQueryDef

public class CannedQueryDefImpl
extends java.lang.Object
implements CannedQueryDef


Constructor Summary
CannedQueryDefImpl(org.alfresco.service.namespace.QName qName, java.lang.String language, java.lang.String query, java.util.List queryParameterDefs, QueryCollection container)
           
 
Method Summary
static CannedQueryDefImpl createCannedQuery(org.dom4j.Element element, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, QueryCollection container, org.alfresco.service.namespace.NamespacePrefixResolver nspr)
           
static org.dom4j.QName getElementQName()
           
 java.lang.String getLanguage()
          Get the language in which the query is defined.
 org.alfresco.service.namespace.NamespacePrefixResolver getNamespacePrefixResolver()
          Return the mechanism that this query definition uses to map namespace prefixes to URIs.
 org.alfresco.service.namespace.QName getQname()
          Get the unique name for the query
 java.lang.String getQuery()
          Get the query string.
 java.util.Collection getQueryParameterDefs()
          Get the definitions for any query parameters.
 java.util.Map getQueryParameterMap()
          Get a map to look up definitions by Qname
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CannedQueryDefImpl

public CannedQueryDefImpl(org.alfresco.service.namespace.QName qName,
                          java.lang.String language,
                          java.lang.String query,
                          java.util.List queryParameterDefs,
                          QueryCollection container)
Method Detail

getQname

public org.alfresco.service.namespace.QName getQname()
Description copied from interface: CannedQueryDef
Get the unique name for the query

Specified by:
getQname in interface CannedQueryDef
Returns:

getLanguage

public java.lang.String getLanguage()
Description copied from interface: CannedQueryDef
Get the language in which the query is defined.

Specified by:
getLanguage in interface CannedQueryDef
Returns:

getQueryParameterDefs

public java.util.Collection getQueryParameterDefs()
Description copied from interface: CannedQueryDef
Get the definitions for any query parameters.

Specified by:
getQueryParameterDefs in interface CannedQueryDef
Returns:

getQuery

public java.lang.String getQuery()
Description copied from interface: CannedQueryDef
Get the query string.

Specified by:
getQuery in interface CannedQueryDef
Returns:

getNamespacePrefixResolver

public org.alfresco.service.namespace.NamespacePrefixResolver getNamespacePrefixResolver()
Description copied from interface: CannedQueryDef
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 CannedQueryDef
Returns:

createCannedQuery

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

getElementQName

public static org.dom4j.QName getElementQName()

getQueryParameterMap

public java.util.Map getQueryParameterMap()
Description copied from interface: CannedQueryDef
Get a map to look up definitions by Qname

Specified by:
getQueryParameterMap in interface CannedQueryDef
Returns:


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