@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; }
getCapabilities.getDCP().add(getCapabilitiesDCP); HTTPType getCapabilitiesHTTP = owsf.createHTTPType(); getCapabilitiesDCP.setHTTP(getCapabilitiesHTTP);
transaction.getDCP().add(transactionDCP); HTTPType transactionHTTP = owsf.createHTTPType(); transactionDCP.setHTTP(transactionHTTP);
getCapabilities.getDCP().add(getCapabilitiesDCP); HTTPType getCapabilitiesHTTP = owsf.createHTTPType(); getCapabilitiesDCP.setHTTP(getCapabilitiesHTTP);
getRecordById.getDCP().add(getRecordByIdDCP); HTTPType getRecordByIdHTTP = owsf.createHTTPType(); getRecordByIdDCP.setHTTP(getRecordByIdHTTP);
describeRecord.getDCP().add(describeRecordDCP); HTTPType describeRecordHTTP = owsf.createHTTPType(); describeRecordDCP.setHTTP(describeRecordHTTP);
describeRecord.getDCP().add(describeRecordDCP); HTTPType describeRecordHTTP = owsf.createHTTPType(); describeRecordDCP.setHTTP(describeRecordHTTP);
transaction.getDCP().add(transactionDCP); HTTPType transactionHTTP = owsf.createHTTPType(); transactionDCP.setHTTP(transactionHTTP);
@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; }
getRecordById.getDCP().add(getRecordByIdDCP); HTTPType getRecordByIdHTTP = owsf.createHTTPType(); getRecordByIdDCP.setHTTP(getRecordByIdHTTP);
getDomain.getDCP().add(getDomainDCP); HTTPType getDomainHTTP = owsf.createHTTPType(); getDomainDCP.setHTTP(getDomainHTTP);
getDomain.getDCP().add(getDomainDCP); HTTPType getDomainHTTP = owsf.createHTTPType(); getDomainDCP.setHTTP(getDomainHTTP);
getRecords.getDCP().add(getRecordsDCP); HTTPType getRecordsHTTP = owsf.createHTTPType(); getRecordsDCP.setHTTP(getRecordsHTTP);
getRecords.getDCP().add(getRecordsDCP); HTTPType getRecordsHTTP = owsf.createHTTPType(); getRecordsDCP.setHTTP(getRecordsHTTP);