コード例 #1
0
        //Rule to get Manual Maintaince And Declare Page
        public static BuilderPackageInterface getManualMaintainceAndDeclarePage()
        {
            if (userPreviousConfig.ContainsKey("getManualMaintainceAndDeclarePage"))
            {
                return(userPreviousConfig["getManualMaintainceAndDeclarePage"]);
            }

            XMLReader ContextValues = new XMLReader();

            ContextValues.parseXML();

            Prolog                  myProlog            = new Prolog(ContextValues.prlg.Author, ContextValues.prlg.EmailID);
            PackageOperations       myPackageOperations = new PackageOperations(ContextValues.packageOps);
            BuilderPackageInterface _ManualPage         = new ManualPage(myProlog, myPackageOperations);

            ReqFiles       myReqFiles       = new ReqFiles(ContextValues.reqFiles);
            BuildProc      myBuildProc      = new BuildProc(ContextValues.buildProc);
            versionHistory myversionHistory = new versionHistory(ContextValues.version);
            Maintenance    _Maintenance     = new Maintenance(myReqFiles, myBuildProc, myversionHistory);

            DeclarClass  myClass  = new DeclarClass(ContextValues.ClassName);
            DeclarStruct myStruct = new DeclarStruct(ContextValues.Struct);
            DeclarDefine myDeclar = new DeclarDefine(null, myStruct);

            BuildPackage myContext = new BuildPackage();

            myContext.setBuildPackage(_ManualPage);
            myContext.setBuildPackage(_Maintenance);
            myContext.setBuildPackage(myDeclar);
            userPreviousConfig["getManualMaintainceAndDeclarePage"] = myContext;
            return(myContext);
        }
コード例 #2
0
        //Rule to get Manual Maintaince And Declare Page
        public static BuilderPackageInterface getManualMaintainceAndDeclarePage()
        {
            if (userPreviousConfig.ContainsKey("getManualMaintainceAndDeclarePage"))
            {
                BuilderPackageInterface mybuildPkg = userPreviousConfig["getManualMaintainceAndDeclarePage"];
                return((BuilderPackageInterface)mybuildPkg.clone());;
            }

            Prolog                  myProlog            = new Prolog();
            PackageOperations       myPackageOperations = new PackageOperations();
            BuilderPackageInterface _ManualPage         = new ManualPage(myProlog, myPackageOperations);

            ReqFiles       myReqFiles       = new ReqFiles();
            BuildProc      myBuildProc      = new BuildProc();
            versionHistory myversionHistory = new versionHistory();
            Maintenance    _Maintenance     = new Maintenance(myReqFiles, myBuildProc, myversionHistory);

            TestStub         myTestStub         = new TestStub();
            DeclarClass      myClass            = new DeclarClass(myTestStub);
            PackageNameSpace myPackageNameSpace = new PackageNameSpace("PackageBuilderTest", myClass, null);

            BuildPackage myContext = new BuildPackage();

            myContext.setBuildPackage(_ManualPage);
            myContext.setBuildPackage(_Maintenance);
            myContext.setBuildPackage(myPackageNameSpace);

            userPreviousConfig["getManualMaintainceAndDeclarePage"] = myContext;
            return(myContext);
        }
コード例 #3
0
        //Rule to get Manual Maintaince And Declare Page
        public static BuilderPackageInterface getManualPageAndStruct()
        {
            if (userPreviousConfig.ContainsKey("getManualPageAndStruct"))
            {
                BuilderPackageInterface mybuildPkg = userPreviousConfig["getManualPageAndStruct"];
                return((BuilderPackageInterface)mybuildPkg.clone());;
            }

            Prolog                  myProlog            = new Prolog();
            PackageOperations       myPackageOperations = new PackageOperations();
            BuilderPackageInterface _ManualPage         = new ManualPage(myProlog, myPackageOperations);
            DeclarStruct            myStruct            = new DeclarStruct();

            BuildPackage myContext = new BuildPackage();

            myContext.setBuildPackage(_ManualPage);
            myContext.setBuildPackage(myStruct);
            userPreviousConfig["getManualPageAndStruct"] = myContext;
            return(myContext);
        }