コード例 #1
0
 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,
     });
 }
コード例 #2
0
 public void RemovePrimLibrary(IPrimLibrary primLibrary)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
 public IPrimLibrary UpdatePrimLibrary(IPrimLibrary primLibrary, PrimLibrarySpec specification)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
 /// <summary>
 /// Removes a PrimLibrary from this bLibrary.
 /// <param name="primLibrary">A PrimLibrary.</param>
 /// </summary>
 public void RemovePrimLibrary(IPrimLibrary primLibrary)
 {
     UmlPackage.RemovePackage(((UpccPrimLibrary)primLibrary).UmlPackage);
 }
コード例 #5
0
 /// <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))));
 }