/// <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>
 /// Creates a ENUMLibrary based on the given <paramref name="specification"/>.
 /// <param name="specification">A specification for a ENUMLibrary.</param>
 /// <returns>The newly created ENUMLibrary.</returns>
 /// </summary>
 public IEnumLibrary CreateEnumLibrary(EnumLibrarySpec specification)
 {
     return(new UpccEnumLibrary(UmlPackage.CreatePackage(EnumLibrarySpecConverter.Convert(specification))));
 }