public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { org.geotools.data.ows.OperationType operationType = new org.geotools.data.ows.OperationType(); for (int i = 0; i < value.length; i++) { if (sameName(elems[0], value[i])) { operationType.setGet((URL) value[i].getValue()); } if (sameName(elems[1], value[i])) { operationType.setPost((URL) value[i].getValue()); } } return operationType; }
OperationType operationType = new OperationType(); operationType.setGet(null); request.setGetCapabilities(operationType);
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { OperationType ret = new OperationType(); ret.setFormats(node.getChildValues("Format")); Iterator dcpTypes = ((List)node.getChildValue("DCPType")).iterator(); while (dcpTypes.hasNext()) { Object[] curOp = (Object[])dcpTypes.next(); if (curOp[0].equals("Get")) { ret.setGet((URL)curOp[1]); } else if (curOp[0].equals("Post")) { ret.setPost((URL)curOp[1]); } } return ret; }
public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { org.geotools.data.ows.OperationType operationType = new org.geotools.data.ows.OperationType(); for (int i = 0; i < value.length; i++) { if (sameName(elems[0], value[i])) { operationType.setGet((URL) value[i].getValue()); } if (sameName(elems[1], value[i])) { operationType.setPost((URL) value[i].getValue()); } } return operationType; }
OperationType c = new OperationType();
OperationType operationType = new OperationType(); operationType.setGet(null); request.setGetCapabilities(operationType);
.getName())) { if (result[0] == null) { result[0] = new OperationType(); .getName())) { if (result[1] == null) { result[1] = new OperationType(); .getName())) { if (result[2] == null) { result[2] = new OperationType(); .getName())) { if (result[3] == null) { result[3] = new OperationType(); .getName())) { if (result[4] == null) { result[4] = new OperationType(); .getName())) { if (result[5] == null) { result[5] = new OperationType();