/// <summary> /// Updates a DOCLibrary to match the given <paramref name="specification"/>. /// <param name="docLibrary">A DOCLibrary.</param> /// <param name="specification">A new specification for the given DOCLibrary.</param> /// <returns>The updated DOCLibrary. Depending on the implementation, this might be the same updated instance or a new instance!</returns> /// </summary> public IDocLibrary UpdateDocLibrary(IDocLibrary docLibrary, DocLibrarySpec specification) { return(new UpccDocLibrary(UmlPackage.UpdatePackage(((UpccDocLibrary)docLibrary).UmlPackage, DocLibrarySpecConverter.Convert(specification)))); }
/// <summary> /// Updates a BIELibrary to match the given <paramref name="specification"/>. /// <param name="bieLibrary">A BIELibrary.</param> /// <param name="specification">A new specification for the given BIELibrary.</param> /// <returns>The updated BIELibrary. Depending on the implementation, this might be the same updated instance or a new instance!</returns> /// </summary> public IBieLibrary UpdateBieLibrary(IBieLibrary bieLibrary, BieLibrarySpec specification) { return(new UpccBieLibrary(UmlPackage.UpdatePackage(((UpccBieLibrary)bieLibrary).UmlPackage, BieLibrarySpecConverter.Convert(specification)))); }
/// <summary> /// Updates a ENUMLibrary to match the given <paramref name="specification"/>. /// <param name="enumLibrary">A ENUMLibrary.</param> /// <param name="specification">A new specification for the given ENUMLibrary.</param> /// <returns>The updated ENUMLibrary. Depending on the implementation, this might be the same updated instance or a new instance!</returns> /// </summary> public IEnumLibrary UpdateEnumLibrary(IEnumLibrary enumLibrary, EnumLibrarySpec specification) { return(new UpccEnumLibrary(UmlPackage.UpdatePackage(((UpccEnumLibrary)enumLibrary).UmlPackage, EnumLibrarySpecConverter.Convert(specification)))); }
/// <summary> /// Updates a CCLibrary to match the given <paramref name="specification"/>. /// <param name="ccLibrary">A CCLibrary.</param> /// <param name="specification">A new specification for the given CCLibrary.</param> /// <returns>The updated CCLibrary. Depending on the implementation, this might be the same updated instance or a new instance!</returns> /// </summary> public ICcLibrary UpdateCcLibrary(ICcLibrary ccLibrary, CcLibrarySpec specification) { return(new UpccCcLibrary(UmlPackage.UpdatePackage(((UpccCcLibrary)ccLibrary).UmlPackage, CcLibrarySpecConverter.Convert(specification)))); }
/// <summary> /// Updates a PRIMLibrary to match the given <paramref name="specification"/>. /// <param name="primLibrary">A PRIMLibrary.</param> /// <param name="specification">A new specification for the given PRIMLibrary.</param> /// <returns>The updated PRIMLibrary. Depending on the implementation, this might be the same updated instance or a new instance!</returns> /// </summary> public IPrimLibrary UpdatePrimLibrary(IPrimLibrary primLibrary, PrimLibrarySpec specification) { return(new UpccPrimLibrary(UmlPackage.UpdatePackage(((UpccPrimLibrary)primLibrary).UmlPackage, PrimLibrarySpecConverter.Convert(specification)))); }