@SuppressWarnings("unchecked") @Override public Object parse(ElementInstance instance, Node node, Object value) throws Exception { Ows10Factory ows10Factory = Ows10Factory.eINSTANCE; DCPType dcpType = ows10Factory.createDCPType(); HTTPType httpType = ows10Factory.createHTTPType(); dcpType.setHTTP(httpType); List<Node> httpChildren = node.getChildren("HTTP"); for (Node http : httpChildren) { Node get = http.getChild("Get"); if (get != null) { RequestMethodType methodType = createRequestMethodType(ows10Factory, get); httpType.getGet().add(methodType); } Node post = http.getChild("Post"); if (post != null) { RequestMethodType methodType = createRequestMethodType(ows10Factory, post); httpType.getPost().add(methodType); } } return dcpType; }
DCPType getCapabilitiesDCP = owsf.createDCPType(); getCapabilities.getDCP().add(getCapabilitiesDCP);
DCPType transactionDCP = owsf.createDCPType(); transaction.getDCP().add(transactionDCP);
DCPType getCapabilitiesDCP = owsf.createDCPType(); getCapabilities.getDCP().add(getCapabilitiesDCP);
DCPType getRecordByIdDCP = owsf.createDCPType(); getRecordById.getDCP().add(getRecordByIdDCP);
DCPType describeRecordDCP = owsf.createDCPType(); describeRecord.getDCP().add(describeRecordDCP);
DCPType describeRecordDCP = owsf.createDCPType(); describeRecord.getDCP().add(describeRecordDCP);
DCPType transactionDCP = owsf.createDCPType(); transaction.getDCP().add(transactionDCP);
@SuppressWarnings("unchecked") @Override public Object parse(ElementInstance instance, Node node, Object value) throws Exception { Ows10Factory ows10Factory = Ows10Factory.eINSTANCE; DCPType dcpType = ows10Factory.createDCPType(); HTTPType httpType = ows10Factory.createHTTPType(); dcpType.setHTTP(httpType); List<Node> httpChildren = node.getChildren("HTTP"); for (Node http : httpChildren) { Node get = http.getChild("Get"); if (get != null) { RequestMethodType methodType = createRequestMethodType(ows10Factory, get); httpType.getGet().add(methodType); } Node post = http.getChild("Post"); if (post != null) { RequestMethodType methodType = createRequestMethodType(ows10Factory, post); httpType.getPost().add(methodType); } } return dcpType; }
DCPType getRecordByIdDCP = owsf.createDCPType(); getRecordById.getDCP().add(getRecordByIdDCP);
DCPType getDomainDCP = owsf.createDCPType(); getDomain.getDCP().add(getDomainDCP);
DCPType getDomainDCP = owsf.createDCPType(); getDomain.getDCP().add(getDomainDCP);
DCPType getRecordsDCP = owsf.createDCPType(); getRecords.getDCP().add(getRecordsDCP);
DCPType getRecordsDCP = owsf.createDCPType(); getRecords.getDCP().add(getRecordsDCP);