/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2008, Open Source Geospatial Foundation (OSGeo)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotools.coverage.io.request;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import org.opengis.coverage.Coverage;
/**
* @author Simone Giannecchini, GeoSolutions
* @todo revisit and improve when feedback starts to flow in
* @todo inherit {@link DefaultCoverageReadRequest} and add a method to obtain the capabilities
* for a {@link CoverageStore}
*/
public class CoverageUpdateRequest extends CoverageRequest {
/**
* @uml.property name="data"
*/
private Collection<? extends Coverage> data;
/**
* @uml.property name="metadata"
*/
private Map<String, String> metadata;
/**
* @see org.geotools.coverage.io.request.CoverageUpdateRequest#getMetadataNames()
*/
public java.lang.String[] getMetadataNames() throws java.io.IOException {
return null;
}
/**
* @see org.geotools.coverage.io.request.CoverageUpdateRequest#getMetadataValue(java.lang.String)
*/
public java.lang.String getMetadataValue(java.lang.String arg0)
throws java.io.IOException {
return arg0;
}
/**
* @see org.geotools.coverage.io.request.CoverageUpdateRequest#setMetadata(java.util.Map)
*/
public void setMetadata(Map<String, String> metadata)
throws java.io.IOException {
this.metadata=new HashMap<String, String>(metadata);
}
/**
* @see org.geotools.coverage.io.request.CoverageUpdateRequest#getMetadata()
*/
public Map<String, String> getMetadata() throws java.io.IOException {
return new HashMap<String, String>(this.metadata);
}
/**
* @see org.geotools.coverage.io.request.CoverageUpdateRequest#setData(java.util.Collection)
*/
public void setData(Collection<? extends Coverage> data) {
this.data = data;
}
/**
* @see org.geotools.coverage.io.request.CoverageUpdateRequest#getData()
*/
public Collection<? extends Coverage> getData() {
return data;
}
}