Package com.luciad.ogc.csw.model
Class TLcdCSWQuery
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.csw.model.TLcdCSWAbstractQuery
com.luciad.ogc.csw.model.TLcdCSWQuery
- All Implemented Interfaces:
ILcdDataObject,ILcdCloneable,ILcdDeepCloneable,Cloneable
The default representation of a GetRecords request query.
- The
constraintallows filtering the records that should be retrieved - The
typeNames(e.g. cswRecord, gmd:MD_Metadata) specify the property set that can be used to filter queries (for example, match the dc:title or apiso:title). - The
element set nameorelementsspecify which properties of the output record to include in the response. - The
sortByspecifies how the resulting records should be sorted
TLcdCSWGetRecordsRequest
or TLcdCSWGetRecordByIdRequest.- Since:
- 2017.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to theConstraintelement.static final TLcdDataPropertyData property that maps to the choice between theElementSetNameandElementNameelements.static final TLcdDataPropertyData property that maps to theSortByelement.static final TLcdDataPropertyData property that maps to thetypeNamesattribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the property that maps to theConstraintelement.Returns the set of properties of the output record to include in the response.Returns the element set name (e.g.Returns the value of the property that maps to theSortByelement.Returns the property sets that can be used tofilterqueries (for example, match the dc:title or apiso:title).voidsetConstraint(TLcdCSWQueryConstraint aValue) Specifies which records should be retrieved.voidsetElements(List<QName> aElements) Specifies the set of properties of the output record to include in the response.voidsetElementSetName(TLcdCSWElementSetName aSetName) Specifies an element set name (e.g.voidsetSortBy(TLcdOGCSortBy aValue) Sets the value of the property that maps to theSortByelement.voidsetTypeNames(List<QName> aValue) Sets the value of the property that maps to thetypeNamesattribute.
-
Field Details
-
TYPE_NAMES_PROPERTY
Data property that maps to thetypeNamesattribute. The possible values for this property are instances ofList<QName>. -
ELEMENTS_PROPERTY
Data property that maps to the choice between theElementSetNameandElementNameelements. The possible values for this property are instances ofTLcdCSWElementSetNameList<String>
-
CONSTRAINT_PROPERTY
Data property that maps to theConstraintelement. The possible values for this property are instances ofTLcdCSWQueryConstraint. -
SORT_BY_PROPERTY
Data property that maps to theSortByelement. The possible values for this property are instances ofTLcdOGCSortBy.
-
-
Constructor Details
-
TLcdCSWQuery
public TLcdCSWQuery() -
TLcdCSWQuery
-
-
Method Details
-
getElementSetName
Returns the element set name (e.g. brief, summary, full) that defines the properties of the output record to include in the response.- Returns:
- the element set name defining the output properties, or null
- See Also:
-
setElementSetName
Specifies an element set name (e.g. brief, summary, full) that defines the properties of the output record to include in the response. This method clears the value ofgetElements().- Parameters:
aSetName- the element set name defining the output properties- See Also:
-
getElements
Returns the set of properties of the output record to include in the response.- Returns:
- the names of the desired output properties, or null
- See Also:
-
setElements
Specifies the set of properties of the output record to include in the response. This method clears the value ofgetElementSetName().- Parameters:
aElements- the names of the desired output properties- See Also:
-
setConstraint
Specifies which records should be retrieved. The constraint is usually based on an OGC Filter. The following snippet matches records with a specific title:
Make sure toTLcdOGCFilter filter = new TLcdOGCFilter( TLcdOGCFilterFactory.like( new TLcdOGCPropertyName(TLcdDCElemSimpleLiteral.TITLE), "My Title" ) ); query.setConstraint(new TLcdCSWQueryConstraint(filter, "1.1.0"));declare the property setyou're going to filter on.- Parameters:
aValue- the value to set for theCONSTRAINT_PROPERTYproperty.
-
getTypeNames
Returns the property sets that can be used tofilterqueries (for example, match the dc:title or apiso:title). You can retrieve type names from therecord typeconstants. The following snippet adds support for filtering records using CSW 2.0.2's default Dublin Core elements (e.g. dc:title):getTypeNames().add(TLcdCSWRecordType.CSW_202.getTypeName());- Returns:
- the value of the
TYPE_NAMES_PROPERTYproperty. - See Also:
-
setTypeNames
Sets the value of the property that maps to thetypeNamesattribute.- Parameters:
aValue- the value to set for theTYPE_NAMES_PROPERTYproperty.
-
getConstraint
Returns the value of the property that maps to theConstraintelement.- Returns:
- the value of the
CONSTRAINT_PROPERTYproperty.
-
getSortBy
Returns the value of the property that maps to theSortByelement.- Returns:
- the value of the
SORT_BY_PROPERTYproperty.
-
setSortBy
Sets the value of the property that maps to theSortByelement.- Parameters:
aValue- the value to set for theSORT_BY_PROPERTYproperty.
-