Package org.opengis.cite.wfs11
Class GetFeatureTestConditions
java.lang.Object
org.opengis.cite.wfs11.GetFeatureTestConditions
Contains some test conditions to extend ctl scripts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkFeaturesMatchingFilter
(Node featureCollection, Node featureData) Checks if all of the feature members matches the filter condition in the feature data (PropertyIsEqualTo)static boolean
checkFeatureTypesDescribedInSchema
(Node capabilitiesResponse, Node describeFeatureTypeResponse) Checks if all featureTypes in the capabilities document are available in the DescribeFeatureType response
-
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, nevernull
featureData
- the featureData used to request the features, nevernull
- 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
- nevernull
describeFeatureTypeResponse
- nevernull
- 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
-