Class 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
  • 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).