//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);
        }
        //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);
        }
 // Cloning Object
 public override object clone()
 {
     return(new Maintenance((BuilderPackageInterface)_ReqFiles.clone(),
                            (BuilderPackageInterface)_BuildProc.clone(), (BuilderPackageInterface)_VersionHistory.clone()));
 }
Beispiel #4
0
 // Cloning Object
 public override object clone()
 {
     if (_myStruct == null)
     {
         return(new PackageNameSpace(_packagenamspace, (BuilderPackageInterface)_myClass.clone(), null));
     }
     else if (_myClass == null)
     {
         return(new PackageNameSpace(_packagenamspace, null, (BuilderPackageInterface)_myStruct.clone()));
     }
     else
     {
         return(new PackageNameSpace(_packagenamspace, (BuilderPackageInterface)_myClass.clone(), (BuilderPackageInterface)_myStruct.clone()));
     }
 }
Beispiel #5
0
 // Cloning Object
 public override object clone()
 {
     return(new ManualPage((BuilderPackageInterface)_myProlog.clone(), (BuilderPackageInterface)_myPackageOperations.clone()));
 }
 // clone object
 public override object clone()
 {
     return(new DeclarClass((BuilderPackageInterface)_myTestStub.clone()));
 }