Package org.alfresco.repo.search
Class CannedQueryDefImpl
java.lang.Object
org.alfresco.repo.search.CannedQueryDefImpl
- All Implemented Interfaces:
CannedQueryDef
-
Constructor Summary
ConstructorsConstructorDescriptionCannedQueryDefImpl(QName qName, String language, String query, List<QueryParameterDefinition> queryParameterDefs, QueryCollection container) -
Method Summary
Modifier and TypeMethodDescriptionstatic CannedQueryDefImplcreateCannedQuery(org.dom4j.Element element, DictionaryService dictionaryService, QueryCollection container, NamespacePrefixResolver nspr) static org.dom4j.QNameGet the language in which the query is defined.Return the mechanism that this query definition uses to map namespace prefixes to URIs.getQname()Get the unique name for the querygetQuery()Get the query string.Get the definitions for any query parameters.Get a map to look up definitions by Qname
-
Constructor Details
-
CannedQueryDefImpl
public CannedQueryDefImpl(QName qName, String language, String query, List<QueryParameterDefinition> queryParameterDefs, QueryCollection container)
-
-
Method Details
-
getQname
Description copied from interface:CannedQueryDefGet the unique name for the query- Specified by:
getQnamein interfaceCannedQueryDef- Returns:
- QName
-
getLanguage
Description copied from interface:CannedQueryDefGet the language in which the query is defined.- Specified by:
getLanguagein interfaceCannedQueryDef- Returns:
- String
-
getQueryParameterDefs
Description copied from interface:CannedQueryDefGet the definitions for any query parameters.- Specified by:
getQueryParameterDefsin interfaceCannedQueryDef
-
getQuery
Description copied from interface:CannedQueryDefGet the query string.- Specified by:
getQueryin interfaceCannedQueryDef- Returns:
- String
-
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
Description copied from interface:CannedQueryDefGet a map to look up definitions by Qname- Specified by:
getQueryParameterMapin interfaceCannedQueryDef- Returns:
- Map
-