|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.ogcwebservices.csw.discovery.Query
public class Query
Main component of a GetRecords
request. A GetRecords
request may
consist of several Query
elements.
Constructor Summary | |
---|---|
Query(java.lang.String elementSetName,
java.util.List<QualifiedName> elementSetNameTypeNames,
java.util.Map<java.lang.String,QualifiedName> elementSetNameVariables,
java.util.List<PropertyPath> elementNames,
Filter constraint,
SortProperty[] sortProperties,
java.util.List<QualifiedName> typeNames,
java.util.Map<java.lang.String,QualifiedName> typeNameVariables)
|
|
Query(java.lang.String elementSetName,
java.lang.String[] elementNames,
Filter constraint,
SortProperty[] sortProperties,
java.lang.String[] typeNames)
Creates a new Query instance. |
Method Summary | |
---|---|
Filter |
getContraint()
Zero or one (Optional); Default action is to execute an unconstrained query |
java.util.Map<java.lang.String,QualifiedName> |
getDeclaredTypeNameVariables()
|
java.util.List<PropertyPath> |
getElementNamesAsPropertyPaths()
|
java.lang.String |
getElementSetName()
Zero or one (Optional); If null then getElementNames may return a list of requested elements. |
java.util.List<QualifiedName> |
getElementSetNameTypeNamesList()
|
java.util.Map<java.lang.String,QualifiedName> |
getElementSetNameVariables()
|
java.lang.String[] |
getElementsNames()
Deprecated. this method is replaced with the more correct getElementNamesAsPropertyPaths() . For now it just returns the values of
PropertyPath.getAsString() method or null if no
elementName were requested. |
SortProperty[] |
getSortProperties()
Ordered list of names of metadata elements to use for sorting the response. |
java.lang.String[] |
getTypeNames()
Deprecated. this function actually creates an Array of Strings using the values returned from the QualifiedName.getFormattedString() method or null if
no typenames were requested. It is more correct to use the values of the
getTypeNamesAsList() method |
java.util.List<QualifiedName> |
getTypeNamesAsList()
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
Query(java.lang.String elementSetName, java.lang.String[] elementNames, Filter constraint, SortProperty[] sortProperties, java.lang.String[] typeNames)
elementSetName
- elementNames
- a String array containing the requested ElementName propertypaths. If not null,
they will be converted to an ArrayListsortProperties
- constraint
- typeNames
- which will be transformed to a list of qualified names.public Query(java.lang.String elementSetName, java.util.List<QualifiedName> elementSetNameTypeNames, java.util.Map<java.lang.String,QualifiedName> elementSetNameVariables, java.util.List<PropertyPath> elementNames, Filter constraint, SortProperty[] sortProperties, java.util.List<QualifiedName> typeNames, java.util.Map<java.lang.String,QualifiedName> typeNameVariables)
elementSetName
- elementSetNameTypeNames
- the typenames (not the variables) which should be returned inside a
GetRecordsReponseelementSetNameVariables
- the variables (and their mapping to the TypeName) which were requested.elementNames
- a list of propertyPath of propertys a client is interested in.constraint
- sortProperties
- typeNames
- list of QualifiedNames which were defined in the query element.typeNameVariables
- the variables (strings starting with an $-sign) which were declared
typeNameattribtue in the Query element.Method Detail |
---|
public java.lang.String getElementSetName()
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
@Deprecated public java.lang.String[] getElementsNames()
getElementNamesAsPropertyPaths()
. For now it just returns the values of
PropertyPath.getAsString()
method or null
if no
elementName were requested.
public Filter getContraint()
public SortProperty[] getSortProperties()
The result set may be sorted by specifying one or more metadata record elements upon which to sort.
@Deprecated public java.lang.String[] getTypeNames()
QualifiedName.getFormattedString()
method or null
if
no typenames were requested. It is more correct to use the values of the
getTypeNamesAsList()
method
public java.util.List<QualifiedName> getTypeNamesAsList()
public java.util.Map<java.lang.String,QualifiedName> getDeclaredTypeNameVariables()
QualifiedName
).public java.util.List<PropertyPath> getElementNamesAsPropertyPaths()
public java.util.Map<java.lang.String,QualifiedName> getElementSetNameVariables()
public java.util.List<QualifiedName> getElementSetNameTypeNamesList()
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org