예제 #1
0
	    /// <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;
		}
예제 #2
0
 /// <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;
 }
예제 #3
0
        /// <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)
        {
        }
예제 #4
0
 public UIViewCreator(IDefClassFactory factory)
 {
     _factory = factory;
 }
예제 #5
0
 /// <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)
 {
 }
예제 #6
0
 ///<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)
        {
        }
예제 #8
0
 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>();
        }
예제 #11
0
 public UIGridCreator(IDefClassFactory factory)
 {
     _factory = factory;
 }
예제 #12
0
 public UIViewCreator(IDefClassFactory factory)
 {
     _factory = factory;
 }
예제 #13
0
 /// <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)
 {
 }
예제 #14
0
        /// <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);
        }
예제 #15
0
 /// <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)
 {
 }
예제 #16
0
        /// <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)
        {
        }
예제 #17
0
        /// <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)
        {
        }
 public UIFormCreatorSpy(IDefClassFactory factory) : base(factory)
 {
 }
예제 #19
0
        /// <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)
        {

        }
예제 #20
0
 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)
        {
        }
예제 #22
0
 public UIFormCreatorSpy(IDefClassFactory factory) : base(factory)
 {
 }
예제 #23
0
 /// <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;
 }
예제 #24
0
 /// <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>();
 }
예제 #25
0
 /// <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)
 {
 }
예제 #26
0
        /// <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)
        {
        }
예제 #27
0
 ///<summary>
 /// Constructs a Class Def Validator with a <see cref="IDefClassFactory"/>
 ///</summary>
 ///<param name="defClassFactory"></param>
 public ClassDefValidator(IDefClassFactory defClassFactory) {
     _defClassFactory = defClassFactory;
 }
 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 XmlDatabaseLookupListLoader(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 XmlBusinessObjectLookupListLoader(DtdLoader dtdLoader, IDefClassFactory defClassFactory)
     : base(dtdLoader, defClassFactory)
 {
 }
예제 #31
0
        /// <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);
        }
예제 #32
0
         public UIFormCreator(IDefClassFactory factory)
 {
     _factory = factory;
 }
예제 #33
0
 /// <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;
 }
예제 #34
0
 /// <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;
 }
예제 #35
0
 /// <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)
 {
 }
예제 #36
0
 /// <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;
 }
예제 #37
0
 public UIFilterCreator(IDefClassFactory factory)
 {
     _factory = factory;
 }
예제 #38
0
 public UIGridCreator(IDefClassFactory factory)
 {
     _factory = factory;
 }