public static EnumLibrarySpec CloneEnumLibrary(IEnumLibrary enumLibrary)
 {
     return(new EnumLibrarySpec
     {
         Name = enumLibrary.Name,
         BusinessTerms = new List <string>(enumLibrary.BusinessTerms),
         Copyrights = new List <string>(enumLibrary.Copyrights),
         Owners = new List <string>(enumLibrary.Owners),
         References = new List <string>(enumLibrary.References),
         Status = enumLibrary.Status,
         VersionIdentifier = enumLibrary.VersionIdentifier,
         BaseURN = enumLibrary.BaseURN,
         NamespacePrefix = enumLibrary.NamespacePrefix,
     });
 }
Exemple #2
0
 public IEnumLibrary UpdateEnumLibrary(IEnumLibrary enumLibrary, EnumLibrarySpec specification)
 {
     throw new NotImplementedException();
 }
Exemple #3
0
 public void RemoveEnumLibrary(IEnumLibrary enumLibrary)
 {
     throw new NotImplementedException();
 }
 /// <summary>
 /// Removes a EnumLibrary from this bLibrary.
 /// <param name="enumLibrary">A EnumLibrary.</param>
 /// </summary>
 public void RemoveEnumLibrary(IEnumLibrary enumLibrary)
 {
     UmlPackage.RemovePackage(((UpccEnumLibrary)enumLibrary).UmlPackage);
 }
 /// <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))));
 }