public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { org.geotools.data.ows.OperationType operationType = null; List formatStrings = new ArrayList(); for (int i = 0; i < value.length; i++) { if (sameName(elems[0], value[i])) { Object[] stringValues = (Object[]) value[i].getValue(); for (int ii = 0; ii < stringValues.length; ii++) { formatStrings.add((String) stringValues[ii]); } } if (sameName(elems[1], value[i])) { operationType = (org.geotools.data.ows.OperationType) value[i].getValue(); } } if (operationType != null) { operationType.setFormats(new ArrayList(formatStrings)); } return operationType; }
public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { org.geotools.data.ows.OperationType operationType = null; List formatStrings = new ArrayList(); for (int i = 0; i < value.length; i++) { if (sameName(elems[0], value[i])) { Object[] stringValues = (Object[]) value[i].getValue(); for (int ii = 0; ii < stringValues.length; ii++) { formatStrings.add((String) stringValues[ii]); } } if (sameName(elems[1], value[i])) { operationType = (org.geotools.data.ows.OperationType) value[i].getValue(); } } if (operationType != null) { operationType.setFormats(new ArrayList(formatStrings)); } return 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; }
ot[i].setFormats(sdl);
ot[i].setFormats(sdl);
result[1].setFormats(t[j].getFormats()); } else { List st = result[0].getFormats(); t[j].setFormats(st); } else if (st != null) { t[j].getFormats().addAll(st); result[3].setFormats(t[j] .getFormats()); } else { t[j].setFormats(st); } else if (st != null) { ((List) t[j].getFormats()) result[4].setFormats(t[j] .getFormats()); } else { t[j].setFormats(st); } else if (st != null) { ((List) t[j].getFormats())