public class PropertyIsNilOperatorTests extends QueryFilterFixture
PropertyIsNil filter predicate that tests the
content of a specified property and evaluates if it is nil. It is also possible to check the reason for a missing
value by matching on the nilReason parameter. While the gml:boundedBy property is nillable, it is ignored; the
application schema must define at least one nillable feature property.
In the GML schema and in GML application schemas, the "nillable" and "nilReason" construction may be used on elements representing GML properties (see 7.2.3). This allows properties that are part of the content of objects and features in GML and GML application languages to be declared to be mandatory, while still permitting them to appear in an instance document with no value. [ISO 19136/OGC 07-036, 8.2.3.2]
Sources
dataSampler, GET_FEATURE_MINIMAL, model, temporalPropertiesdocBuilder, ETS_PKG, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata, wfsVersion| Constructor and Description |
|---|
PropertyIsNilOperatorTests() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addPropertyIsNilPredicate(Document request,
QName propertyName,
String nilReason,
boolean negate)
Adds a
PropertyIsNil predicate to a GetFeature request entity with the given property name. |
void |
propertyIsNil(ProtocolBinding binding,
QName featureType)
[
Test] Submits a GetFeature request containing a PropertyIsNil predicate designating a nillable
feature property (one per feature type). |
buildRequestEntity, discardResponseEntity, findTemporalProperties, initQueryFilterFixtureaddAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, setWfsClientpublic void propertyIsNil(ProtocolBinding binding, QName featureType)
Test] Submits a GetFeature request containing a PropertyIsNil predicate designating a nillable
feature property (one per feature type). The response entity must include only feature instances that include the
specified property with @xsi:nil="true".
All Basic WFS implementations must support the Standard Filter conformance class defined in OpenGIS Filter Encoding 2.0 Encoding Standard (ISO 19143).
binding - The ProtocolBinding to use for this request.featureType - The FeatureType to use for this test.void addPropertyIsNilPredicate(Document request, QName propertyName, String nilReason, boolean negate)
PropertyIsNil predicate to a GetFeature request entity with the given property name.
<Filter xmlns="http://www.opengis.net/fes/2.0">
<PropertyIsNil nilReason="withheld">
<ValueReference>tns:featureProperty</ValueReference>
</PropertyIsNil>
</Filter>
request - The request entity (/wfs:GetFeature).propertyName - A QName that specifies the feature property to check.nilReason - A String that specifies a reason for the missing value; it may be a standard value or an absolute URI
in accord with the gml:NilReasonType type definition. Supply an empty string or null value if the
reason does not matter.negate - Negates the predicate by inserting a <Not> operator (logical complement).Copyright © 2020 Open Geospatial Consortium. All rights reserved.