#region Disclaimer / License // Copyright (C) 2009, Kenneth Skovhede // http://www.hexad.dk, opensource@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; namespace OSGeo.MapGuide.Maestro.ResourceEditors { /// /// Represents the mapping from provider name to Editor type /// public class ProviderEditorMap { private ProviderItem[] m_mapppings; public ProviderEditorMap() { } /// /// Gets or sets a list of mappings /// [System.Xml.Serialization.XmlElementAttribute("ProviderItem")] public ProviderItem[] Mappings { get { return m_mapppings; } set { m_mapppings = value; } } /// /// Represents a single mapping from provider name to control /// public class ProviderItem { private string m_provider; private string m_control; private string m_assemblyPath; /// /// The name of the provider, ea. OSGeo.SDF /// public string Provider { get { return m_provider; } set { m_provider = value; } } /// /// The fully qualified name of the control to load. /// public string Control { get { return m_control; } set { m_control = value; } } /// /// The full path to the assemly containg the editor control /// public string AssemblyPath { get { return m_assemblyPath; } set { m_assemblyPath = value; } } } } }