/* (non-Javadoc)
* @see org.geotools.xml.schema.Type#getValue(org.geotools.xml.schema.Element, org.geotools.xml.schema.ElementValue[], org.xml.sax.Attributes, java.util.Map)
*/
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;
}