using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Umbraco.Core.Composing; namespace Umbraco.Web.Editors { // note - about IEditorValidator // // interface: IEditorValidator // base class: EditorValidator // static validation: EditorValidator.Validate() // composition: via EditorValidationCollection and builder // initialized with all IEditorValidator instances // // validation is used exclusively in ContentTypeControllerBase // currently the only implementations are for Models Builder. /// /// Provides a general object validator. /// public interface IEditorValidator : IDiscoverable { /// /// Gets the object type validated by this validator. /// Type ModelType { get; } /// /// Validates an object. /// IEnumerable Validate(object model); } }