@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;