/* * Geotools2 - OpenSource mapping toolkit * http://geotools.org * (C) 2002, Geotools Project Managment Committee (PMC) * * 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. * */ /* Copyright (c) 2001, 2003 TOPP - www.openplans.org. All rights reserved. * This code is licensed under the GPL 2.0 license, availible at the root * application directory. */ package org.geotools.validation; import org.geotools.feature.Feature; /** * Collates results of validation operations. * *
* Following the lead the excelent design work in the JUnit testing framework * validation results are collected by a ValidationResults object. This * interface for the ValidationResults object also allows it to collect * warning information. *
* * @author Jody Garnett, Refractions Research, Inc * @source $URL$ */ public interface ValidationResults { /** * Called to configure ValidationResults according to the provided * FeatureValidation * * @param validation Provided FeatureValidation */ public void setValidation(Validation validation); /** * Returns a validation error on against the provided feature, An optional * error message may be provided. The validating web feature server will: * *