Class GetFeatureTestConditions

java.lang.Object
org.opengis.cite.wfs11.GetFeatureTestConditions

public class GetFeatureTestConditions extends Object
Contains some test conditions to extend ctl scripts.
  • Constructor Details

    • GetFeatureTestConditions

      public GetFeatureTestConditions()
  • Method Details

    • checkFeaturesMatchingFilter

      public static boolean checkFeaturesMatchingFilter(Node featureCollection, Node featureData) throws Exception
      Checks if all of the feature members matches the filter condition in the feature data (PropertyIsEqualTo)
      Parameters:
      featureCollection - the GetFeature response, never null
      featureData - the featureData used to request the features, never null
      Returns:
      true if at least one feature member does not match the filter conditionor if the feature collection does not contain a feature, false otherwise
      Throws:
      Exception - if an error occurred
    • checkFeatureTypesDescribedInSchema

      public static boolean checkFeatureTypesDescribedInSchema(Node capabilitiesResponse, Node describeFeatureTypeResponse) throws Exception
      Checks if all featureTypes in the capabilities document are available in the DescribeFeatureType response
      Parameters:
      capabilitiesResponse - never null
      describeFeatureTypeResponse - never null
      Returns:
      true if all feature types in the capabilities document are available in the DescribeFeatureType response or the capabilities document does not contain a feature type, false otherwise
      Throws:
      Exception