getFeatureWithLock.setHandle((String) node.getAttributeValue("handle")); getFeatureWithLock.setMaxFeatures(maxFeatures); getFeatureWithLock.setExpiry(expiry); getFeatureWithLock.getQuery().addAll(node.getChildValues(QueryType.class));
getFeatureWithLock.getQuery().addAll(node.getChildValues(QueryType.class)); getFeatureWithLock.setExpiry((BigInteger) node.getAttributeValue("expiry")); getFeatureWithLock.setResultType((ResultTypeType) node.getAttributeValue("resultType")); getFeatureWithLock.setOutputFormat((String) node.getAttributeValue("outputFormat")); getFeatureWithLock.setMaxFeatures((BigInteger) node.getAttributeValue("maxFeatures")); getFeatureWithLock.setTraverseXlinkDepth( (String) node.getAttributeValue("traverseXlinkDepth")); getFeatureWithLock.setTraverseXlinkExpiry( (BigInteger) node.getAttributeValue("traverseXlinkExpiry"));
@Test public void testGetFeatureWithLock() throws Exception { Parser p = new Parser(getXmlConfiguration11()); String request = "<wfs:GetFeatureWithLock xmlns:wfs=\"http://www.opengis.net/wfs\" expiry=\"10\" service=\"WFS\" \n" + "outputFormat=\"text/xml; subtype=gml/3.1.1\" version=\"1.1.0\"\n" + "xsi:schemaLocation=\"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n" + "<wfs:Query typeName=\"topp:states\" srsName=\"EPSG:4326\" xmlns:topp=\"http://www.openplans.org/topp\">\n" + " <ogc:Filter xmlns:ogc=\"http://www.opengis.net/ogc\">\n" + "<ogc:FeatureId fid=\"states.1\"/>\n" + "</ogc:Filter>\n" + "</wfs:Query>\n" + "</wfs:GetFeatureWithLock>"; GetFeatureWithLockType gf = (GetFeatureWithLockType) p.parse(new ByteArrayInputStream(request.getBytes())); assertEquals("WFS", gf.getService()); assertEquals("1.1.0", gf.getVersion()); assertEquals("text/xml; subtype=gml/3.1.1", gf.getOutputFormat()); assertEquals(new BigInteger("10"), gf.getExpiry()); }
/** * Sets the "GetFeatureWithLock" element */ public void setGetFeatureWithLock(net.opengis.wfs.GetFeatureWithLockType getFeatureWithLock) { synchronized (monitor()) { check_orphaned(); net.opengis.wfs.GetFeatureWithLockType target = null; target = (net.opengis.wfs.GetFeatureWithLockType)get_store().find_element_user(GETFEATUREWITHLOCK$0, 0); if (target == null) { target = (net.opengis.wfs.GetFeatureWithLockType)get_store().add_element_user(GETFEATUREWITHLOCK$0); } target.set(getFeatureWithLock); } }
getFeatureWithLock.setHandle((String) node.getAttributeValue("handle")); getFeatureWithLock.setMaxFeatures(maxFeatures); getFeatureWithLock.setExpiry(expiry); getFeatureWithLock.getQuery().addAll(node.getChildValues(QueryType.class));