@SuppressWarnings("unchecked") private void addParameter( Node node, Ows10Factory ows10Factory, OperationType operationType, String parameterName) { Node paramParentNode = node.getChild(parameterName); List<String> paramValues = childNames(paramParentNode); DomainType domain = ows10Factory.createDomainType(); domain.setName(parameterName); for (String paramValue : paramValues) { domain.getValue().add(paramValue); } operationType.getParameter().add(domain); }
@SuppressWarnings("unchecked") private void addParameter(Node node, Ows10Factory ows10Factory, OperationType operationType, String parameterName) { Node paramParentNode = node.getChild(parameterName); List<String> paramValues = childNames(paramParentNode); DomainType domain = ows10Factory.createDomainType(); domain.setName(parameterName); for (String paramValue : paramValues) { domain.getValue().add(paramValue); } operationType.getParameter().add(domain); }
getRecordByIdPostConstraints.setName("PostEncoding"); getRecordByIdPostConstraints.getValue().add("XML");
transactionPostConstraints.setName("PostEncoding"); transactionPostConstraints.getValue().add("XML");
describeRecordPostConstraints.setName("PostEncoding"); describeRecordPostConstraints.getValue().add("XML");
describeRecordPostConstraints.setName("PostEncoding"); describeRecordPostConstraints.getValue().add("XML");
transactionPostConstraints.setName("PostEncoding"); transactionPostConstraints.getValue().add("XML");
getRecordByIdPostConstraints.setName("PostEncoding"); getRecordByIdPostConstraints.getValue().add("XML");
getRecordsPostConstraints.setName("PostEncoding"); getRecordsPostConstraints.getValue().add("XML"); if (queriables != null && queriables.size() > 0) { DomainType dt = owsf.createDomainType(); dt.setName(rd.getQueryablesDescription()); NamespaceSupport nss = rd.getNamespaceSupport(); dt.setName("XPathQueryables"); dt.getValue().add("allowed"); getRecords.getConstraint().add(dt);
getRecordsPostConstraints.setName("PostEncoding"); getRecordsPostConstraints.getValue().add("XML"); if(queriables != null && queriables.size() > 0) { DomainType dt = owsf.createDomainType(); dt.setName(rd.getQueryablesDescription()); NamespaceSupport nss = rd.getNamespaceSupport(); dt.setName("XPathQueryables"); dt.getValue().add("allowed"); getRecords.getConstraint().add(dt);