コード例 #1
0
 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,
     });
 }
コード例 #2
0
 public void RemoveIdScheme(IIdScheme idScheme)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
 public IIdScheme UpdateIdScheme(IIdScheme idScheme, IdSchemeSpec specification)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
 /// <summary>
 /// Removes a IDSCHEME from this ENUMLibrary.
 /// <param name="idScheme">A IDSCHEME.</param>
 /// </summary>
 public void RemoveIdScheme(IIdScheme idScheme)
 {
     UmlPackage.RemoveDataType(((UpccIdScheme)idScheme).UmlDataType);
 }
コード例 #5
0
 /// <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))));
 }