[mapguide-commits] r4365 - trunk/Tools/Maestro/Maestro/ResourceValidators

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Dec 2 16:58:24 EST 2009


Author: ksgeograf
Date: 2009-12-02 16:58:23 -0500 (Wed, 02 Dec 2009)
New Revision: 4365

Removed:
   trunk/Tools/Maestro/Maestro/ResourceValidators/IValidator.cs
Log:
Maestro:
Remove unused file

Deleted: trunk/Tools/Maestro/Maestro/ResourceValidators/IValidator.cs
===================================================================
--- trunk/Tools/Maestro/Maestro/ResourceValidators/IValidator.cs	2009-12-02 21:50:02 UTC (rev 4364)
+++ trunk/Tools/Maestro/Maestro/ResourceValidators/IValidator.cs	2009-12-02 21:58:23 UTC (rev 4365)
@@ -1,107 +0,0 @@
-#region Disclaimer / License
-// Copyright (C) 2009, Kenneth Skovhede
-// http://www.hexad.dk, opensource at hexad.dk
-// 
-// 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; either
-// version 2.1 of the License, or (at your option) any later version.
-// 
-// 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.
-// 
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
-// 
-#endregion
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace OSGeo.MapGuide.Maestro.ResourceValidators
-{
-    /// <summary>
-    /// The interface for validating an item
-    /// </summary>
-    public interface IValidator
-    {
-        ValidationIssue[] Validate(object resource, bool recurse);
-    }
-
-    /// <summary>
-    /// A class holding results of a validation
-    /// </summary>
-    public class ValidationIssue
-    {
-        private string m_message;
-        private string m_status;
-        private string m_field;
-
-        /// <summary>
-        /// Gets the message for the validation issue
-        /// </summary>
-        public string Message { get { return m_message; } }
-        /// <summary>
-        /// Gets the status of the validation issue
-        /// </summary>
-        public ValidationStatus Status { get { return m_status; } }
-        /// <summary>
-        /// Gets the field the issue relates to (if any)
-        /// </summary>
-        public string Field { get { return m_field; } }
-
-        /// <summary>
-        /// Returns a textual representation of the issue
-        /// </summary>
-        /// <returns>A textual representation of the issue</returns>
-        public override string ToString()
-        {
-            return string.Format("{0}: {1}", this.Status, this.Message) + (this.Field == null ? "" : "(" + this.Field + ")");
-        }
-
-        /// <summary>
-        /// Constructs a new validation issue
-        /// </summary>
-        /// <param name="status">The issue status</param>
-        /// <param name="message">The issue message</param>
-        public ValidationIssue(ValidationStatus status, string message)
-        {
-            m_message = message;
-            m_status = status;
-        }
-
-        /// <summary>
-        /// Constructs a new validation issue
-        /// </summary>
-        /// <param name="status">The issue status</param>
-        /// <param name="message">The issue message</param>
-        /// <param name="field">The field thtat the issue relates to</param>
-        public ValidationIssue(ValidationStatus status, string message, string field)
-            : this(status, message)
-        {
-            m_field = field;
-        }
-    }
-
-    /// <summary>
-    /// All possible states a validation issue may have
-    /// </summary>
-    public enum ValidationStatus
-    {
-        /// <summary>
-        /// Indicates that the issue is non-vital, eg. a performance problem
-        /// </summary>
-        Information,
-        /// <summary>
-        /// Indicates that the issue is likely to cause problems
-        /// </summary>
-        Warning,
-        /// <summary>
-        /// Indicates that the issue will prevent correct operation of the map
-        /// </summary>
-        Error
-    }
-}



More information about the mapguide-commits mailing list