public static PrimLibrarySpec ClonePrimLibrary(IPrimLibrary primLibrary) { return(new PrimLibrarySpec { Name = primLibrary.Name, BusinessTerms = new List <string>(primLibrary.BusinessTerms), Copyrights = new List <string>(primLibrary.Copyrights), Owners = new List <string>(primLibrary.Owners), References = new List <string>(primLibrary.References), Status = primLibrary.Status, VersionIdentifier = primLibrary.VersionIdentifier, BaseURN = primLibrary.BaseURN, NamespacePrefix = primLibrary.NamespacePrefix, }); }
public void RemovePrimLibrary(IPrimLibrary primLibrary) { throw new NotImplementedException(); }
public IPrimLibrary UpdatePrimLibrary(IPrimLibrary primLibrary, PrimLibrarySpec specification) { throw new NotImplementedException(); }
/// <summary> /// Removes a PrimLibrary from this bLibrary. /// <param name="primLibrary">A PrimLibrary.</param> /// </summary> public void RemovePrimLibrary(IPrimLibrary primLibrary) { UmlPackage.RemovePackage(((UpccPrimLibrary)primLibrary).UmlPackage); }
/// <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)))); }