| |||||||||||||||||
| Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
| Model\XmlModel\IXmlValidator.cs | - | - | - | - |
|
||||||||||||
| 1 | #region Copyright | |
| 2 | /* | |
| 3 | ShowX. Maps business objects into presentation layer. | |
| 4 | Copyright (C) 2005 Jesus Diaz. | |
| 5 | ||
| 6 | This library is free software; you can redistribute it and/or | |
| 7 | modify it under the terms of the GNU Lesser General Public | |
| 8 | License as published by the Free Software Foundation; either | |
| 9 | version 2.1 of the License, or (at your option) any later version. | |
| 10 | ||
| 11 | This library is distributed in the hope that it will be useful, | |
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 14 | Lesser General Public License for more details. | |
| 15 | ||
| 16 | You should have received a copy of the GNU Lesser General Public | |
| 17 | License along with this library; if not, write to the Free Software | |
| 18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. | |
| 19 | ||
| 20 | For project details see: http://showx.sourceforge.net | |
| 21 | */ | |
| 22 | #endregion | |
| 23 | ||
| 24 | using System.Xml; | |
| 25 | using System.Xml.Schema; | |
| 26 | ||
| 27 | namespace ShowX.Model.XmlModel | |
| 28 | { | |
| 29 | /// <summary> | |
| 30 | /// Define the type that should conform any Xml File validator. | |
| 31 | /// </summary> | |
| 32 | public interface IXmlFileValidator | |
| 33 | { | |
| 34 | /// <summary> | |
| 35 | /// Validate a given XmlNode over an embedded xsd file. | |
| 36 | /// </summary> | |
| 37 | /// <param name="node">XmlNode to validate.</param> | |
| 38 | /// <param name="embeddedXsdRes">Embedded xsd to use for validation.</param> | |
| 39 | /// <returns>True if validation node is sucessful, false otherwise.</returns> | |
| 40 | bool Validate(XmlNode node, string embeddedXsdRes); | |
| 41 | ||
| 42 | /// <summary> | |
| 43 | /// Event handler to handle validation events. | |
| 44 | /// </summary> | |
| 45 | /// <param name="sender">Object who sends event.</param> | |
| 46 | /// <param name="e">Validation event arguments.</param> | |
| 47 | void XmlValidator_EventHandler(object sender, ValidationEventArgs e); | |
| 48 | } | |
| 49 | } | |
| 50 |
|
||||||||