///<summary> /// The method operates on a business library (bLibrary) passed as a parameter and adds all /// libraries on the CC level. These libraries include an ENUM library, a PRIM library, a /// CDT library, and a CC library. The names of the generated libraries are specified in the /// parameters of the method. ///</summary> ///<param name="bLibrary"> /// The bLibrary that the method operates on. /// </param> ///<param name="primLibraryName"> /// The name of the PRIM library created. If the parameter equals an empty string ("") then /// creating the library is omitted. /// </param> ///<param name="enumLibraryName"> /// The name of the ENUM library created. If the parameter equals an empty string ("") then /// creating the library is omitted. /// </param> ///<param name="cdtLibraryName"> /// The name of the CDT library created. If the parameter equals an empty string ("") then /// creating the library is omitted. /// </param> ///<param name="ccLibraryName"> /// The name of the CC library created. If the parameter equals an empty string ("") then /// creating the library is omitted. /// </param> private void CreateCCLibraries(IBLibrary bLibrary, string primLibraryName, string enumLibraryName, string cdtLibraryName, string ccLibraryName) { if (!primLibraryName.Equals("")) { SendStatusChanged("Creating PRIM Library."); bLibrary.CreatePrimLibrary(new PrimLibrarySpec { Name = primLibraryName }); } if (!enumLibraryName.Equals("")) { SendStatusChanged("Creating ENUM Library."); bLibrary.CreateEnumLibrary(new EnumLibrarySpec { Name = enumLibraryName }); } if (!cdtLibraryName.Equals("")) { SendStatusChanged("Creating CDT Library."); bLibrary.CreateCdtLibrary(new CdtLibrarySpec { Name = cdtLibraryName }); } if (!ccLibraryName.Equals("")) { SendStatusChanged("Creating CC Library."); bLibrary.CreateCcLibrary(new CcLibrarySpec { Name = ccLibraryName }); } }
///<summary> /// The method operates on a business library (bLibrary) passed as a parameter and adds all /// libraries on the BIE level. These libraries include a BDT library, a BIE library, and a /// DOC library. The names of the generated libraries are specified in the parameters of the /// method. ///</summary> ///<param name="bLibrary"> /// The bLibrary that the method operates on. /// </param> ///<param name="bdtLibraryName"> /// The name of the BDT library created. If the parameter equals an empty string ("") then /// creating the library is omitted. /// </param> ///<param name="bieLibraryName"> /// The name of the BIE library created. If the parameter equals an empty string ("") then /// creating the library is omitted. /// </param> ///<param name="docLibraryName"> /// The name of the DOC library created. If the parameter equals an empty string ("") then /// creating the library is omitted. /// </param> private void CreateBIELibraries(IBLibrary bLibrary, string bdtLibraryName, string bieLibraryName, string docLibraryName) { if (!bdtLibraryName.Equals("")) { SendStatusChanged("Creating BDT Library."); bLibrary.CreateBdtLibrary(new BdtLibrarySpec { Name = bdtLibraryName }); } if (!bieLibraryName.Equals("")) { SendStatusChanged("Creating BIE Library."); bLibrary.CreateBieLibrary(new BieLibrarySpec { Name = bieLibraryName }); } if (!docLibraryName.Equals("")) { SendStatusChanged("Creating DOC Library."); bLibrary.CreateDocLibrary(new DocLibrarySpec { Name = docLibraryName }); } }
private void BLibraryComboBoxSelectionChanged(object sender, SelectionChangedEventArgs e) { if (bLibraryComboBox.SelectedIndex > -1) { SelectedBLibrary = Model.BLibraries[bLibraryComboBox.SelectedIndex]; } CheckIfInputIsValid(); }
public MappedLibraryGenerator(SchemaMapping schemaMapping, IBLibrary bLibrary, string docLibraryName, string bieLibraryName, string bdtLibraryName, string qualifier, string rootElementName) { this.bLibrary = bLibrary; this.docLibraryName = docLibraryName; this.bieLibraryName = bieLibraryName; this.bdtLibraryName = bdtLibraryName; this.qualifier = qualifier; this.rootElementName = rootElementName; this.schemaMapping = schemaMapping; }
public static BLibrarySpec CloneBLibrary(IBLibrary bLibrary) { return(new BLibrarySpec { Name = bLibrary.Name, BusinessTerms = new List <string>(bLibrary.BusinessTerms), Copyrights = new List <string>(bLibrary.Copyrights), Owners = new List <string>(bLibrary.Owners), References = new List <string>(bLibrary.References), Status = bLibrary.Status, VersionIdentifier = bLibrary.VersionIdentifier, }); }
/// <summary> /// </summary> /// <param name="xmlSchemaFiles"></param> /// <param name="ccLibrary">The CC Library.</param> /// <param name="bLibrary">The bLibrary.</param> /// <param name="mapForceMappingFiles">The MapForce mapping file.</param> /// <param name="docLibraryName">The name of the DOCLibrary to be created.</param> /// <param name="bieLibraryName">The name of the BIELibrary to be created.</param> /// <param name="bdtLibraryName">The name of the BDTLibrary to be created.</param> /// <param name="qualifier">The qualifier for the business domain (e.g. "ebInterface").</param> /// <param name="rootElementName"></param> public MappingImporter(IEnumerable <string> mapForceMappingFiles, IEnumerable <string> xmlSchemaFiles, ICcLibrary ccLibrary, IBLibrary bLibrary, string docLibraryName, string bieLibraryName, string bdtLibraryName, string qualifier, string rootElementName, ICctsRepository cctsRepository) { this.ccLibrary = ccLibrary; this.bLibrary = bLibrary; this.mapForceMappingFiles = new List <string>(mapForceMappingFiles).ToArray(); this.xmlSchemaFiles = new List <string>(xmlSchemaFiles).ToArray(); this.docLibraryName = docLibraryName; this.bieLibraryName = bieLibraryName; this.bdtLibraryName = bdtLibraryName; this.qualifier = qualifier; this.rootElementName = rootElementName; this.cctsRepository = cctsRepository; }
public void CreateUpccModel(string modelName, string bdtLibraryName, string bieLibraryName, string docLibraryName, Action <IBLibrary> importCCLibraries) { repository.Models.Refresh(); IBLibrary bLibrary = CreateBLibrary(modelName); importCCLibraries(bLibrary); CreateBIELibraries(bLibrary, bdtLibraryName, bieLibraryName, docLibraryName); repository.RefreshModelView(0); repository.Models.Refresh(); SendStatusChanged("Done."); }
public void RemoveBLibrary(IBLibrary bLibrary) { throw new NotImplementedException(); }
public IBLibrary UpdateBLibrary(IBLibrary bLibrary, BLibrarySpec specification) { throw new NotImplementedException(); }
/// <summary> /// Removes a BLibrary from this bLibrary. /// <param name="bLibrary">A BLibrary.</param> /// </summary> public void RemoveBLibrary(IBLibrary bLibrary) { UmlPackage.RemovePackage(((UpccBLibrary)bLibrary).UmlPackage); }
/// <summary> /// Updates a bLibrary to match the given <paramref name="specification"/>. /// <param name="bLibrary">A bLibrary.</param> /// <param name="specification">A new specification for the given bLibrary.</param> /// <returns>The updated bLibrary. Depending on the implementation, this might be the same updated instance or a new instance!</returns> /// </summary> public IBLibrary UpdateBLibrary(IBLibrary bLibrary, BLibrarySpec specification) { return(new UpccBLibrary(UmlPackage.UpdatePackage(((UpccBLibrary)bLibrary).UmlPackage, BLibrarySpecConverter.Convert(specification)))); }