/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2004-2009, 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.data.complex.xml;
import java.util.List;
import org.jdom.Document;
/**
* The xml object returned for processing via a backend xmlDataStore.
*
* @author Russell Petty, GSV
* @version $Id$
* @source $URL$
*/
public class XmlResponse {
private Document doc;
private List<Integer> validFeatureIndex;
public XmlResponse(Document doc, List<Integer> validIndexedItems) {
assert doc != null;
assert validIndexedItems != null;
this.doc = doc;
this.validFeatureIndex = validIndexedItems;
}
public Document getDoc() {
return doc;
}
public List<Integer> getValidFeatureIndex() {
return validFeatureIndex;
}
}