getFeature.setMaxFeatures(BigInteger.valueOf(maxFeatures.intValue()));
/** * Turns a GetLogType objects into an almost equivalent GetFeatureType object s * that the superclass can do its work * @param featureCollection * @param request * @return */ private GetFeatureType toGetFeatureType(FeatureCollectionType featureCollection, GetLogType request) { FeatureCollection features = (FeatureCollection) featureCollection.getFeature().get(0); FeatureType featureType = features.getSchema(); GetFeatureType ftRequest = WfsFactory.eINSTANCE.createGetFeatureType(); QueryType query = WfsFactory.eINSTANCE.createQueryType(); query.setTypeName(Collections.singletonList(featureType.getTypeName())); ftRequest.getQuery().add(query); ftRequest.setBaseUrl(request.getBaseUrl()); ftRequest.setHandle(request.getHandle()); ftRequest.setMaxFeatures(request.getMaxFeatures()); ftRequest.setOutputFormat(request.getOutputFormat()); ftRequest.setResultType(ResultTypeType.RESULTS_LITERAL); return ftRequest; }
Integer maxFeatures = query.getMaxFeatures(); if (maxFeatures != null) { getFeature.setMaxFeatures(BigInteger.valueOf(maxFeatures.intValue()));
getFeature.setMaxFeatures(BigInteger.valueOf(maxFeatures.intValue()));
getFeature.setMaxFeatures((BigInteger) node .getAttributeValue("maxFeatures"));
getFeature.setMaxFeatures(WFSBindingUtils.asBigInteger(number));
getFeature.setMaxFeatures((BigInteger) node.getAttributeValue("maxFeatures"));