public class PropertyIsLikeOperatorTests extends QueryFilterFixture
PropertyIsLike filter that tests the value of a property using a
specified pattern--a combination of regular characters and metacharacters.
The PropertyIsLike predicate can be regarded as a very simple regular
expression operator.
Sources
dataSampler, GET_FEATURE_MINIMAL, model, temporalPropertiesdocBuilder, ETS_PKG, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata, wfsVersion| Constructor and Description |
|---|
PropertyIsLikeOperatorTests() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addPropertyIsLikePredicate(Document request,
QName propertyName,
String pattern,
boolean negate)
Adds a
PropertyIsLike predicate to a GetFeature request entity
with the given property name and pattern. |
(package private) Map<QName,String> |
generateMatchingStringPattern(QName featureType)
Inspects sample data retrieved from the SUT and generates a pattern that
matches at least one simple property value (of type xsd:string) for the
specified feature type.
|
void |
propertyIsLike(ProtocolBinding binding,
QName featureType)
[
Test] Submits a GetFeature request containing a
PropertyIsLike predicate that applies to some simple feature
property (of type xsd:string). |
void |
propertyIsNotLike(ProtocolBinding binding,
QName featureType)
[
Test] Submits a GetFeature request containing a
Not/PropertyIsLike predicate that applies to some simple feature
property (of type xsd:string). |
buildRequestEntity, discardResponseEntity, findTemporalProperties, initQueryFilterFixtureaddAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, setWfsClientpublic void propertyIsNotLike(ProtocolBinding binding, QName featureType)
Test] Submits a GetFeature request containing a
Not/PropertyIsLike predicate that applies to some simple feature
property (of type xsd:string). The response entity must not include any
feature instances with matching property values.binding - The ProtocolBinding to use for this request.featureType - A QName representing the qualified name of some feature type.public void propertyIsLike(ProtocolBinding binding, QName featureType)
Test] Submits a GetFeature request containing a
PropertyIsLike predicate that applies to some simple feature
property (of type xsd:string). The response entity must include only
features with a property value matching the specified pattern.binding - The ProtocolBinding to use for this request.featureType - A QName representing the qualified name of some feature type.void addPropertyIsLikePredicate(Document request, QName propertyName, String pattern, boolean negate)
PropertyIsLike predicate to a GetFeature request entity
with the given property name and pattern. The metacharacters are shown in
the following example.
<Filter xmlns="http://www.opengis.net/fes/2.0">
<PropertyIsLike wildCard="*" singleChar="." escapeChar="\">
<ValueReference>tns:featureProperty</ValueReference>
<Literal>*pattern-.</Literal>
</PropertyIsLike>
</Filter>
request - The request entity (/wfs:GetFeature).propertyName - A QName that specifies the feature property to check.pattern - The pattern to match the property value against.negate - Negates the predicate by inserting a <Not> operator
(logical complement).Map<QName,String> generateMatchingStringPattern(QName featureType)
featureType - The qualified name of some feature type.Copyright © 2020 Open Geospatial Consortium. All rights reserved.