private OperationType getFeature(Node node, Ows10Factory ows10Factory) { OperationType operationType = createOperation("GetFeature", node, ows10Factory); addParameter(node, ows10Factory, operationType, "ResultFormat"); return operationType; }
private OperationType dft(Node node, Ows10Factory ows10Factory) { OperationType operationType = createOperation("DescribeFeatureType", node, ows10Factory); addParameter(node, ows10Factory, operationType, "SchemaDescriptionLanguage"); return operationType; }
@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; }
private OperationType getFeature(Node node, Ows10Factory ows10Factory) { OperationType operationType = createOperation("GetFeature", node, ows10Factory); addParameter(node, ows10Factory, operationType, "ResultFormat"); return operationType; }
private OperationType dft(Node node, Ows10Factory ows10Factory) { OperationType operationType = createOperation("DescribeFeatureType", node, ows10Factory); addParameter(node, ows10Factory, operationType, "SchemaDescriptionLanguage"); return operationType; }
@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; }