public static IdSchemeSpec CloneIdScheme(IIdScheme idScheme) { return(new IdSchemeSpec { Name = idScheme.Name, BusinessTerms = new List <string>(idScheme.BusinessTerms), Definition = idScheme.Definition, IdentifierSchemeAgencyIdentifier = idScheme.IdentifierSchemeAgencyIdentifier, IdentifierSchemeAgencyName = idScheme.IdentifierSchemeAgencyName, ModificationAllowedIndicator = idScheme.ModificationAllowedIndicator, Pattern = idScheme.Pattern, RestrictedPrimitive = idScheme.RestrictedPrimitive, VersionIdentifier = idScheme.VersionIdentifier, }); }
public void RemoveIdScheme(IIdScheme idScheme) { throw new NotImplementedException(); }
public IIdScheme UpdateIdScheme(IIdScheme idScheme, IdSchemeSpec specification) { throw new NotImplementedException(); }
/// <summary> /// Removes a IDSCHEME from this ENUMLibrary. /// <param name="idScheme">A IDSCHEME.</param> /// </summary> public void RemoveIdScheme(IIdScheme idScheme) { UmlPackage.RemoveDataType(((UpccIdScheme)idScheme).UmlDataType); }
/// <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)))); }