public class CannedQueryDefImpl extends Object implements CannedQueryDef
Constructor and Description |
---|
CannedQueryDefImpl(org.alfresco.service.namespace.QName qName,
String language,
String query,
List<org.alfresco.service.cmr.search.QueryParameterDefinition> queryParameterDefs,
QueryCollection container) |
Modifier and Type | Method and Description |
---|---|
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() |
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
|
String |
getQuery()
Get the query string.
|
Collection<org.alfresco.service.cmr.search.QueryParameterDefinition> |
getQueryParameterDefs()
Get the definitions for any query parameters.
|
Map<org.alfresco.service.namespace.QName,org.alfresco.service.cmr.search.QueryParameterDefinition> |
getQueryParameterMap()
Get a map to look up definitions by Qname
|
public CannedQueryDefImpl(org.alfresco.service.namespace.QName qName, String language, String query, List<org.alfresco.service.cmr.search.QueryParameterDefinition> queryParameterDefs, QueryCollection container)
public org.alfresco.service.namespace.QName getQname()
CannedQueryDef
getQname
in interface CannedQueryDef
public String getLanguage()
CannedQueryDef
getLanguage
in interface CannedQueryDef
public Collection<org.alfresco.service.cmr.search.QueryParameterDefinition> getQueryParameterDefs()
CannedQueryDef
getQueryParameterDefs
in interface CannedQueryDef
public String getQuery()
CannedQueryDef
getQuery
in interface CannedQueryDef
public org.alfresco.service.namespace.NamespacePrefixResolver getNamespacePrefixResolver()
CannedQueryDef
getNamespacePrefixResolver
in interface CannedQueryDef
public static CannedQueryDefImpl createCannedQuery(org.dom4j.Element element, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, QueryCollection container, org.alfresco.service.namespace.NamespacePrefixResolver nspr)
public static org.dom4j.QName getElementQName()
public Map<org.alfresco.service.namespace.QName,org.alfresco.service.cmr.search.QueryParameterDefinition> getQueryParameterMap()
CannedQueryDef
getQueryParameterMap
in interface CannedQueryDef
Copyright © 2005–2017 Alfresco Software. All rights reserved.