Package org.opengis.cite.iso19142.basic.filter

# Class PropertyIsNullOperatorTests

java.lang.Object
org.opengis.cite.iso19142.BaseFixture
org.opengis.cite.iso19142.basic.filter.QueryFilterFixture
org.opengis.cite.iso19142.basic.filter.PropertyIsNullOperatorTests

public class PropertyIsNullOperatorTests extends QueryFilterFixture
Tests the response to a GetFeature request that includes a `PropertyIsNull` filter predicate; this operator tests for the existence of a specified feature property.

Sources

- ISO 19142:2010, cl. A.1.2: Basic WFS
- ISO 19143:2010, cl. 7.7.3.5: PropertyIsNull operator
- ISO 19143:2010, cl. A.6: Test cases for standard filter

- ## Field Summary

  ### Fields inherited from class org.opengis.cite.iso19142.basic.filter.QueryFilterFixture

  `dataSampler, GET_FEATURE_MINIMAL, model, temporalProperties`

  ### Fields inherited from class org.opengis.cite.iso19142.BaseFixture

  `docBuilder, ETS_PKG, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata, wfsVersion`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PropertyIsNullOperatorTests()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `(package private) void`
  `addPropertyIsNullPredicate(Document request, QName propertyName, boolean negate)`
  Adds a `PropertyIsNull` predicate to a GetFeature request entity using the given property name.
  `void`
  `gmlNameIsNull(ProtocolBinding binding, QName featureType)`
  [`Test`] Submits a GetFeature request containing a `PropertyIsNull` predicate designating the gml:name property.
  `void`
  `propertyIsNotNull(ProtocolBinding binding, QName featureType)`
  [`Test`] Submits a GetFeature request containing a `Not/PropertyIsNull` predicate designating some feature property (the last one in document order).

  ### Methods inherited from class org.opengis.cite.iso19142.basic.filter.QueryFilterFixture

  `buildRequestEntity, discardResponseEntity, findTemporalProperties, getModel, initQueryFilterFixture`

  ### Methods inherited from class org.opengis.cite.iso19142.BaseFixture

  `addAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, setWfsClient`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PropertyIsNullOperatorTests

    public PropertyIsNullOperatorTests()

- ## Method Details

  - ### gmlNameIsNull

    public void gmlNameIsNull(ProtocolBinding binding, QName featureType)
    [`Test`] Submits a GetFeature request containing a `PropertyIsNull` predicate designating the gml:name property. The response entity must include only features that lack the specified property.
    Parameters:
      `binding` - The ProtocolBinding to use for this request.
      `featureType` - A QName representing the qualified name of some feature type.

  - ### propertyIsNotNull

    public void propertyIsNotNull(ProtocolBinding binding, QName featureType)
    [`Test`] Submits a GetFeature request containing a `Not/PropertyIsNull` predicate designating some feature property (the last one in document order). The response entity must include only features that include the specified property.
    Parameters:
      `binding` - The ProtocolBinding to use for this request.
      `featureType` - A QName representing the qualified name of some feature type.

  - ### addPropertyIsNullPredicate

    void addPropertyIsNullPredicate(Document request, QName propertyName, boolean negate)
    Adds a `PropertyIsNull` predicate to a GetFeature request entity using the given property name.

         <Filter xmlns="http://www.opengis.net/fes/2.0">
           <PropertyIsNull>
             <ValueReference>tns:featureProperty</ValueReference>
           </PropertyIsNull>
         </Filter>

    Parameters:
      `request` - The request entity (/wfs:GetFeature).
      `propertyName` - A QName that specifies the feature property to check.
      `negate` - Negates the predicate by inserting a `<Not>` operator (logical complement).