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
constraint
allows 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 name
orelements
specify which properties of the output record to include in the response. - The
sortBy
specifies how the resulting records should be sorted
TLcdCSWGetRecordsRequest
or TLcdCSWGetRecordByIdRequest
.- Since:
- 2017.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to theConstraint
element.static final TLcdDataProperty
Data property that maps to the choice between theElementSetName
andElementName
elements.static final TLcdDataProperty
Data property that maps to theSortBy
element.static final TLcdDataProperty
Data property that maps to thetypeNames
attribute. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the property that maps to theConstraint
element.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 theSortBy
element.Returns the property sets that can be used tofilter
queries (for example, match the dc:title or apiso:title).void
setConstraint
(TLcdCSWQueryConstraint aValue) Specifies which records should be retrieved.void
setElements
(List<QName> aElements) Specifies the set of properties of the output record to include in the response.void
setElementSetName
(TLcdCSWElementSetName aSetName) Specifies an element set name (e.g.void
setSortBy
(TLcdOGCSortBy aValue) Sets the value of the property that maps to theSortBy
element.void
setTypeNames
(List<QName> aValue) Sets the value of the property that maps to thetypeNames
attribute.
-
Field Details
-
TYPE_NAMES_PROPERTY
Data property that maps to thetypeNames
attribute. The possible values for this property are instances ofList<QName>
. -
ELEMENTS_PROPERTY
Data property that maps to the choice between theElementSetName
andElementName
elements. The possible values for this property are instances ofTLcdCSWElementSetName
List<String>
-
CONSTRAINT_PROPERTY
Data property that maps to theConstraint
element. The possible values for this property are instances ofTLcdCSWQueryConstraint
. -
SORT_BY_PROPERTY
Data property that maps to theSortBy
element. 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 set
you're going to filter on.- Parameters:
aValue
- the value to set for theCONSTRAINT_PROPERTY
property.
-
getTypeNames
Returns the property sets that can be used tofilter
queries (for example, match the dc:title or apiso:title). You can retrieve type names from therecord type
constants. 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_PROPERTY
property. - See Also:
-
setTypeNames
Sets the value of the property that maps to thetypeNames
attribute.- Parameters:
aValue
- the value to set for theTYPE_NAMES_PROPERTY
property.
-
getConstraint
Returns the value of the property that maps to theConstraint
element.- Returns:
- the value of the
CONSTRAINT_PROPERTY
property.
-
getSortBy
Returns the value of the property that maps to theSortBy
element.- Returns:
- the value of the
SORT_BY_PROPERTY
property.
-
setSortBy
Sets the value of the property that maps to theSortBy
element.- Parameters:
aValue
- the value to set for theSORT_BY_PROPERTY
property.
-