@Override public Object parse(ElementInstance instance, Node node, Object value) throws Exception { Ows10Factory ows10Factory = Ows10Factory.eINSTANCE; OperationsMetadataType om = ows10Factory.createOperationsMetadataType(); Node request = node.getChild("Request"); OperationType operation; operation = getCapabilities(request.getChild("GetCapabilities"), ows10Factory); addOperation(om, operation); operation = dft(request.getChild("DescribeFeatureType"), ows10Factory); addOperation(om, operation); operation = getFeature(request.getChild("GetFeature"), ows10Factory); addOperation(om, operation); Node nodeOp = request.getChild("Transaction"); if (nodeOp != null) { operation = createOperation("Transaction", nodeOp, ows10Factory); addOperation(om, operation); } nodeOp = request.getChild("LockFeature"); if (nodeOp != null) { operation = createOperation("LockFeature", nodeOp, ows10Factory); addOperation(om, operation); } nodeOp = request.getChild("GetFeatureWithLock"); if (nodeOp != null) { operation = createOperation("GetFeatureWithLock", nodeOp, ows10Factory); addOperation(om, operation); } return om; }
@Override public Object parse(ElementInstance instance, Node node, Object value) throws Exception { Ows10Factory ows10Factory = Ows10Factory.eINSTANCE; OperationsMetadataType om = ows10Factory.createOperationsMetadataType(); Node request = node.getChild("Request"); OperationType operation; operation = getCapabilities(request.getChild("GetCapabilities"), ows10Factory); addOperation(om, operation); operation = dft(request.getChild("DescribeFeatureType"), ows10Factory); addOperation(om, operation); operation = getFeature(request.getChild("GetFeature"), ows10Factory); addOperation(om, operation); operation = createOperation("Transaction", node, ows10Factory); addOperation(om, operation); operation = createOperation("LockFeature", node, ows10Factory); addOperation(om, operation); operation = createOperation("GetFeatureWithLock", node, ows10Factory); addOperation(om, operation); operation = createOperation("Transaction", node, ows10Factory); addOperation(om, operation); return om; }