/// <summary> /// Updates a IDSCHEME to match the given <paramref name="specification"/>. /// <param name="idScheme">A IDSCHEME.</param> /// <param name="specification">A new specification for the given IDSCHEME.</param> /// <returns>The updated IDSCHEME. Depending on the implementation, this might be the same updated instance or a new instance!</returns> /// </summary> public IIdScheme UpdateIdScheme(IIdScheme idScheme, IdSchemeSpec specification) { return(new UpccIdScheme(UmlPackage.UpdateDataType(((UpccIdScheme)idScheme).UmlDataType, IdSchemeSpecConverter.Convert(specification)))); }
/// <summary> /// Creates a IDSCHEME based on the given <paramref name="specification"/>. /// <param name="specification">A specification for a IDSCHEME.</param> /// <returns>The newly created IDSCHEME.</returns> /// </summary> public IIdScheme CreateIdScheme(IdSchemeSpec specification) { return(new UpccIdScheme(UmlPackage.CreateDataType(IdSchemeSpecConverter.Convert(specification)))); }