/// <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)))); }
/// <summary> /// Creates a bLibrary based on the given <paramref name="specification"/>. /// <param name="specification">A specification for a bLibrary.</param> /// <returns>The newly created bLibrary.</returns> /// </summary> public IBLibrary CreateBLibrary(BLibrarySpec specification) { return(new UpccBLibrary(UmlPackage.CreatePackage(BLibrarySpecConverter.Convert(specification)))); }