| java.lang.Object org.deegree.ogcwebservices.csw.discovery.Query
Query | public class Query (Code) | | Main component of a GetRecords request. A GetRecords request may
consist of several Query elements.
author: Markus Schneider author: last edited by: $Author: apoth $ version: $Revision: 9345 $, $Date: 2007-12-27 08:22:25 -0800 (Thu, 27 Dec 2007) $ |
Constructor Summary | |
| Query(String elementSetName, String[] elementNames, Filter constraint, SortProperty[] sortProperties, String[] typeNames) Creates a new Query instance.
Parameters: elementSetName - Parameters: elementNames - a String array containing the requested ElementName propertypaths. | public | Query(String elementSetName, List<QualifiedName> elementSetNameTypeNames, Map<String, QualifiedName> elementSetNameVariables, List<PropertyPath> elementNames, Filter constraint, SortProperty[] sortProperties, List<QualifiedName> typeNames, Map<String, QualifiedName> typeNameVariables) |
Query | Query(String elementSetName, String[] elementNames, Filter constraint, SortProperty[] sortProperties, String[] typeNames)(Code) | | Creates a new Query instance.
Parameters: elementSetName - Parameters: elementNames - a String array containing the requested ElementName propertypaths. If not null,they will be converted to an ArrayList. Parameters: sortProperties - Parameters: constraint - Parameters: typeNames - which will be transformed to a list of qualified names. |
Query | public Query(String elementSetName, List<QualifiedName> elementSetNameTypeNames, Map<String, QualifiedName> elementSetNameVariables, List<PropertyPath> elementNames, Filter constraint, SortProperty[] sortProperties, List<QualifiedName> typeNames, Map<String, QualifiedName> typeNameVariables)(Code) | | Parameters: elementSetName - Parameters: elementSetNameTypeNames - the typenames (not the variables) which should be returned inside aGetRecordsReponse Parameters: elementSetNameVariables - the variables (and their mapping to the TypeName) which were requested. Parameters: elementNames - a list of propertyPath of propertys a client is interested in. Parameters: constraint - Parameters: sortProperties - Parameters: typeNames - list of QualifiedNames which were defined in the query element. Parameters: typeNameVariables - the variables (strings starting with an $-sign) which were declaredtypeNameattribtue in the Query element. |
getContraint | public Filter getContraint()(Code) | | Zero or one (Optional); Default action is to execute an unconstrained query
the Filter which was given in the query. |
getDeclaredTypeNameVariables | public Map<String, QualifiedName> getDeclaredTypeNameVariables()(Code) | | the variables (with a leading $ (dollar_sign) as a String), declared with thetypeNames (given as QualifiedName ). |
getElementNamesAsPropertyPaths | public List<PropertyPath> getElementNamesAsPropertyPaths()(Code) | | the requested elementNames as a list of PropertyPaths. |
getElementSetName | public String getElementSetName()(Code) | | Zero or one (Optional); If null then getElementNames may return a list of
requested elements. If both methods returns null the default action is to present
all metadata elements.
The ElementName parameter is used to specify one or more metadata record elements that the
query should present in the response to the a GetRecords operation. Well known sets of
element may be named, in which case the ElementSetName parameter may be used (e. g.brief,
summary or full).
If neither parameter is specified, then a CSW shall present all metadata record elements
the textual value (brief, summary, full) of the elementSetName node or null if nonewas given. |
getElementSetNameTypeNamesList | public List<QualifiedName> getElementSetNameTypeNamesList()(Code) | | the typenames which were requested in the ElementSetNames/@typeNames attribute. |
getElementSetNameVariables | public Map<String, QualifiedName> getElementSetNameVariables()(Code) | | the variables which were requested in the ElementSetNames/@typeNames attribute andthe mapping to their typenames. |
getSortProperties | public SortProperty[] getSortProperties()(Code) | | Ordered list of names of metadata elements to use for sorting the response. Format of each
list item is metadata_elemen_ name:A indicating an ascending sort or metadata_ element_name:D
indicating descending sort
The result set may be sorted by specifying one or more metadata record elements upon which to
sort.
an Array of properties for sorting the response. |
getTypeNames | public String[] getTypeNames()(Code) | | The typeName parameter specifies the record type name that defines a set of metadata record
element names which will be constrained in the predicate of the query. In addition, all or
some of the these names may be specified in the query to define which metadata record
elements the query should present in the response to the GetRecords operation.
the type names of the query.QualifiedName.getFormattedStringQuery.getTypeNamesAsList() |
getTypeNamesAsList | public List<QualifiedName> getTypeNamesAsList()(Code) | | The typeName parameter specifies the record type name that defines a set of metadata record
element names which will be constrained in the predicate of the query. In addition, all or
some of the these names may be specified in the query to define which metadata record
elements the query should present in the response to the GetRecords operation.
the type names of the query. |
|
|