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.
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, 8.2.3.2]
dataSampler, GET_FEATURE_ENTITY, model
docBuilder, featureInfo, featureTypes, reqEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata
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 |
boundedByIsNil(ProtocolBinding binding,
QName featureType)
[
Test ] Submits a GetFeature request containing a PropertyIsNil
filter predicate applied to the (nillable) gml:boundedBy property. |
void |
propertyIsNil(ProtocolBinding binding,
QName featureType)
[
Test ] Submits a GetFeature request containing a
PropertyIsNil predicate designating some non-standard nillable
feature property (the last one in document order, if any). |
buildRequestEntity, initQueryFilterFixture
addAttributesIfTestFailed, allProtocolsAndFeatureTypes, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, protocolAndAvailableFeatureTypes
public void boundedByIsNil(ProtocolBinding binding, QName featureType)
Test
] Submits a GetFeature request containing a PropertyIsNil
filter predicate applied to the (nillable) gml:boundedBy property. The
response entity must include only feature instances having
gml:boundedBy[@xsi:nil="true"] (for any reason).binding
- The ProtocolBinding to use for this request.featureType
- A QName representing the qualified name of some feature type.public void propertyIsNil(ProtocolBinding binding, QName featureType)
Test
] Submits a GetFeature request containing a
PropertyIsNil
predicate designating some non-standard nillable
feature property (the last one in document order, if any). The response
entity must include only features that include the specified property
with @xsi:nil="true".binding
- The ProtocolBinding to use for this request.featureType
- A QName representing the qualified name of some feature type.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 © 2013. All Rights Reserved.