/// <summary> /// Constructor to initialise a new loader with a dtd path /// </summary> /// <param name="dtdLoader">The loader for the dtds (pass through a DtdLoader object using the standard constructor for the default behaviour)</param> /// <param name="defClassFactory">The factory for the definition classes</param> protected XmlLoader(DtdLoader dtdLoader, IDefClassFactory defClassFactory) { if (dtdLoader == null) throw new ArgumentNullException("dtdLoader"); if (defClassFactory == null) throw new ArgumentNullException("defClassFactory"); _dtdLoader = dtdLoader; _defClassFactory = defClassFactory; }
/// <summary> /// Constructor to initialise a new loader with a dtd path /// </summary> /// <param name="dtdLoader">The loader for the dtds (pass through a DtdLoader object using the standard constructor for the default behaviour)</param> /// <param name="defClassFactory">The factory for the definition classes</param> protected XmlLoader(DtdLoader dtdLoader, IDefClassFactory defClassFactory) { if (dtdLoader == null) { throw new ArgumentNullException("dtdLoader"); } if (defClassFactory == null) { throw new ArgumentNullException("defClassFactory"); } _dtdLoader = dtdLoader; _defClassFactory = defClassFactory; }
/// <summary> /// Constructor to initialise a new loader with a dtd path /// </summary> /// <param name="dtdLoader">The dtd loader</param> /// <param name="defClassFactory">The factory for the definition classes</param> protected XmlLookupListLoader(DtdLoader dtdLoader, IDefClassFactory defClassFactory) : base(dtdLoader, defClassFactory) { }
public UIViewCreator(IDefClassFactory factory) { _factory = factory; }
/// <summary> /// Constructor to initialise a new loader with a dtd path /// </summary> /// <param name="dtdLoader">The dtd loader</param> /// <param name="defClassFactory">The factory for the definition classes</param> public XmlSuperClassLoader(DtdLoader dtdLoader, IDefClassFactory defClassFactory) : base(dtdLoader, defClassFactory) { }
///<summary> /// Constructs a Class Def Validator with a <see cref="IDefClassFactory"/> ///</summary> ///<param name="defClassFactory"></param> public ClassDefValidator(IDefClassFactory defClassFactory) { _defClassFactory = defClassFactory; }
/// <summary> /// Constructor to initialise a loader with a dtd path /// </summary> /// <param name="dtdLoader">The dtd loader</param> /// <param name="defClassFactory">The factory for the definition classes</param> public XmlDatabaseLookupListLoader(DtdLoader dtdLoader, IDefClassFactory defClassFactory) : base(dtdLoader, defClassFactory) { }
public UIFilterCreator(IDefClassFactory factory) { _factory = factory; }
public UIGridCreatorSpy(IDefClassFactory factory) : base(factory) { }
/// <summary> /// Constructor to initialise a loader with a dtd path /// </summary> /// <param name="dtdLoader">The dtd loader</param> /// <param name="defClassFactory">The factory for the definition classes</param> public XmlSimpleLookupListLoader(DtdLoader dtdLoader, IDefClassFactory defClassFactory) : base(dtdLoader, defClassFactory) { _displayValueDictionary = new Dictionary<string, string>(); }
public UIGridCreator(IDefClassFactory factory) { _factory = factory; }
/// <summary> /// Constructor to initialise a new loader with a dtd path /// </summary> /// <param name="dtdLoader">The dtd loader</param> /// <param name="defClassFactory">The factory for the definition classes</param> public XmlUIGridColumnLoader(DtdLoader dtdLoader, IDefClassFactory defClassFactory) : base(dtdLoader, defClassFactory) { }
/// <summary> /// Loads the lookup list data into the specified property definition /// </summary> /// <param name="sourceElement">The source element</param> /// <param name="def">The property definition to load into</param> /// <param name="dtdLoader">The dtd loader</param> /// <param name="defClassFactory">The factory for the definition classes</param> public static void LoadLookupListIntoProperty(string sourceElement, IPropDef def, DtdLoader dtdLoader, IDefClassFactory defClassFactory) { XmlDocument doc = new XmlDocument(); doc.LoadXml(sourceElement); if (doc.DocumentElement == null) { throw new HabaneroDeveloperException ("There was a problem loading the class definitions pleaser refer to the system administrator", "The load lookup list property could not be loaded since the source element does not contain a document name"); } string loaderClassName = "Xml" + doc.DocumentElement.Name + "Loader"; Type loaderType = Type.GetType (typeof(XmlLookupListLoader).Namespace + "." + loaderClassName, true, true); XmlLookupListLoader loader = (XmlLookupListLoader) Activator.CreateInstance(loaderType, new object[] { dtdLoader, defClassFactory }); def.LookupList = loader.LoadLookupList(doc.DocumentElement); }
/// <summary> /// Constructor to initialise a new loader with a dtd path /// </summary> /// <param name="dtdLoader">The dtd loader</param> /// <param name="defClassFactory">The factory for the definition classes</param> public XmlUILoader(DtdLoader dtdLoader, IDefClassFactory defClassFactory) : base(dtdLoader, defClassFactory) { }
public UIFormCreatorSpy(IDefClassFactory factory) : base(factory) { }
/// <summary> /// Constructor to initialise a new loader with a dtd path /// </summary> /// <param name="dtdLoader">The dtd loader</param> /// <param name="defClassFactory">The factory for the definition classes</param> public XmlPrimaryKeyLoader(DtdLoader dtdLoader, IDefClassFactory defClassFactory) : base(dtdLoader, defClassFactory) { }
public UIFormCreator(IDefClassFactory factory) { _factory = factory; }
/// <summary> /// Constructor to initialise a new loader with a dtd path /// </summary> /// <param name="dtdLoader">The dtd loader</param> /// <param name="defClassFactory">The factory for the definition classes</param> public XmlBusinessObjectLookupListLoader(DtdLoader dtdLoader, IDefClassFactory defClassFactory) : base(dtdLoader, defClassFactory) { }
/// <summary> /// Constructor to initialise a new loader with a dtd path /// </summary> /// <param name="dtdLoader">The dtd loader</param> /// <param name="defClassFactory">The factory for the definition classes</param> /// <param name="className">The name of the class that has this relationship</param> public XmlRelationshipLoader(DtdLoader dtdLoader, IDefClassFactory defClassFactory, string className) : base(dtdLoader, defClassFactory) { _className = className; }
/// <summary> /// Constructor to initialise a loader with a dtd path /// </summary> /// <param name="dtdLoader">The dtd loader</param> /// <param name="defClassFactory">The factory for the definition classes</param> public XmlSimpleLookupListLoader(DtdLoader dtdLoader, IDefClassFactory defClassFactory) : base(dtdLoader, defClassFactory) { _displayValueDictionary = new Dictionary <string, string>(); }
/// <summary> /// Constructor to initialise a new loader with a dtd path /// </summary> /// <param name="dtdLoader">The dtd loader</param> /// <param name="defClassFactory">The factory for the definition classes</param> public XmlUIFormFieldLoader(DtdLoader dtdLoader, IDefClassFactory defClassFactory) : base(dtdLoader, defClassFactory) { }
/// <summary> /// Constructor to initialise a new loader with a dtd path /// </summary> /// <param name="dtdLoader">The dtd loader</param> /// <param name="defClassFactory">The factory for the definition classes</param> public XmlPropertyLoader(DtdLoader dtdLoader, IDefClassFactory defClassFactory) : base(dtdLoader, defClassFactory) { }
/// <summary> /// Loads the lookup list data into the specified property definition /// </summary> /// <param name="sourceElement">The source element</param> /// <param name="def">The property definition to load into</param> /// <param name="dtdLoader">The dtd loader</param> /// <param name="defClassFactory">The factory for the definition classes</param> public static void LoadLookupListIntoProperty(string sourceElement, IPropDef def, DtdLoader dtdLoader, IDefClassFactory defClassFactory) { XmlDocument doc = new XmlDocument(); doc.LoadXml(sourceElement); if (doc.DocumentElement == null) { throw new HabaneroDeveloperException ("There was a problem loading the class definitions pleaser refer to the system administrator", "The load lookup list property could not be loaded since the source element does not contain a document name"); } string loaderClassName = "Xml" + doc.DocumentElement.Name + "Loader"; Type loaderType = Type.GetType (typeof (XmlLookupListLoader).Namespace + "." + loaderClassName, true, true); XmlLookupListLoader loader = (XmlLookupListLoader) Activator.CreateInstance(loaderType, new object[] {dtdLoader, defClassFactory}); def.LookupList = loader.LoadLookupList(doc.DocumentElement); }
/// <summary> /// Constructor to create a new list of class definitions from the /// string provided, using the dtd path provided /// </summary> /// <param name="xmlClassDefs">The string containing all the /// class definitions. If you are loading these from /// a file, you can use /// <code>new StreamReader("filename.xml").ReadToEnd()</code> /// to create a continuous string.</param> /// <param name="dtdLoader">The dtd loader</param> /// <param name="defClassFactory">The factory for the definition classes</param> public XmlClassDefsLoader(string xmlClassDefs, DtdLoader dtdLoader, IDefClassFactory defClassFactory) : base(dtdLoader, defClassFactory) { _xmlClassDefs = xmlClassDefs; }
/// <summary> /// Constructor to initialise a new loader with a dtd path /// </summary> /// <param name="dtdLoader">The dtd loader</param> /// <param name="defClassFactory">The factory for the definition classes</param> public XmlKeyLoader(DtdLoader dtdLoader, IDefClassFactory defClassFactory) : base(dtdLoader, defClassFactory) { }