/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { DescribeFeatureTypeType describeFeatureType = wfsfactory.createDescribeFeatureTypeType(); WFSBindingUtils.service(describeFeatureType, node); WFSBindingUtils.version(describeFeatureType, node); WFSBindingUtils.outputFormat(describeFeatureType, node, "XMLSCHEMA"); describeFeatureType.getTypeName().addAll(node.getChildValues(QName.class)); return describeFeatureType; }
@Test public void testWFSDescribeFeatureType() throws Exception { DescribeFeatureTypeType dft = WfsFactory.eINSTANCE.createDescribeFeatureTypeType(); dft.getTypeName().add(new QName("http://acme.org", "foo", "acme")); dft.getTypeName().add(new QName("http://acme.org", "bar", "acme")); Operation op = op("DescribeFeatureType", "WFS", "1.0.0", dft); callback.operationDispatched(new Request(), op); assertEquals("acme:foo", data.getResources().get(0)); assertEquals("acme:bar", data.getResources().get(1)); }