public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { LayerDescription layerDesc = new LayerDescription(); String[] queries = new String[value.length]; for (int i = 0; i < value.length; i++) { queries[i] = (String) value[i].getValue(); } layerDesc.setQueries(queries); String name = attrs.getValue("name"); layerDesc.setName(name); String owsType = attrs.getValue("owsType"); layerDesc.setOwsType(owsType); try { URL wfs = new URL(attrs.getValue("wfs")); layerDesc.setWfs(wfs); } catch (MalformedURLException e) { } try { URL owsURL = new URL(attrs.getValue("owsURL")); layerDesc.setOwsURL(owsURL); } catch (MalformedURLException e) { } return layerDesc; }
public Object getValue( Element element, ElementValue[] value, Attributes attrs, Map hints ) throws SAXException, OperationNotSupportedException { LayerDescription layerDesc = new LayerDescription(); String[] queries = new String[value.length]; for (int i = 0; i < value.length; i++) { queries[i] = (String) value[i].getValue(); } layerDesc.setQueries(queries); String name = attrs.getValue("name"); layerDesc.setName(name); String owsType = attrs.getValue("owsType"); layerDesc.setOwsType(owsType); try { URL wfs = new URL(attrs.getValue("wfs")); layerDesc.setWfs(wfs); } catch (MalformedURLException e) { } try { URL owsURL = new URL(attrs.getValue("owsURL")); layerDesc.setOwsURL(owsURL); } catch (MalformedURLException e) { } return layerDesc; }
layerDesc.setName(layer.getName()); layerDesc.setOwsType(owsType); layerDesc.setOwsURL(owsURL);