Package org.alfresco.repo.search
Class CannedQueryDefImpl
- java.lang.Object
-
- org.alfresco.repo.search.CannedQueryDefImpl
-
- All Implemented Interfaces:
CannedQueryDef
public class CannedQueryDefImpl extends Object implements CannedQueryDef
-
-
Constructor Summary
Constructors Constructor Description CannedQueryDefImpl(QName qName, String language, String query, List<QueryParameterDefinition> queryParameterDefs, QueryCollection container)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CannedQueryDefImplcreateCannedQuery(org.dom4j.Element element, DictionaryService dictionaryService, QueryCollection container, NamespacePrefixResolver nspr)static org.dom4j.QNamegetElementQName()StringgetLanguage()Get the language in which the query is defined.NamespacePrefixResolvergetNamespacePrefixResolver()Return the mechanism that this query definition uses to map namespace prefixes to URIs.QNamegetQname()Get the unique name for the queryStringgetQuery()Get the query string.Collection<QueryParameterDefinition>getQueryParameterDefs()Get the definitions for any query parameters.Map<QName,QueryParameterDefinition>getQueryParameterMap()Get a map to look up definitions by Qname
-
-
-
Constructor Detail
-
CannedQueryDefImpl
public CannedQueryDefImpl(QName qName, String language, String query, List<QueryParameterDefinition> queryParameterDefs, QueryCollection container)
-
-
Method Detail
-
getQname
public QName getQname()
Description copied from interface:CannedQueryDefGet the unique name for the query- Specified by:
getQnamein interfaceCannedQueryDef- Returns:
- QName
-
getLanguage
public String getLanguage()
Description copied from interface:CannedQueryDefGet the language in which the query is defined.- Specified by:
getLanguagein interfaceCannedQueryDef- Returns:
- String
-
getQueryParameterDefs
public Collection<QueryParameterDefinition> getQueryParameterDefs()
Description copied from interface:CannedQueryDefGet the definitions for any query parameters.- Specified by:
getQueryParameterDefsin interfaceCannedQueryDef
-
getQuery
public String getQuery()
Description copied from interface:CannedQueryDefGet the query string.- Specified by:
getQueryin interfaceCannedQueryDef- Returns:
- String
-
getNamespacePrefixResolver
public NamespacePrefixResolver getNamespacePrefixResolver()
Description copied from interface:CannedQueryDefReturn 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:
getNamespacePrefixResolverin interfaceCannedQueryDef- Returns:
- NamespacePrefixResolver
-
createCannedQuery
public static CannedQueryDefImpl createCannedQuery(org.dom4j.Element element, DictionaryService dictionaryService, QueryCollection container, NamespacePrefixResolver nspr)
-
getElementQName
public static org.dom4j.QName getElementQName()
-
getQueryParameterMap
public Map<QName,QueryParameterDefinition> getQueryParameterMap()
Description copied from interface:CannedQueryDefGet a map to look up definitions by Qname- Specified by:
getQueryParameterMapin interfaceCannedQueryDef- Returns:
- Map
-
-