public static CodelistEntrySpec CloneCodelistEntry(ICodelistEntry codelistEntry)
 {
     return(new CodelistEntrySpec
     {
         Name = codelistEntry.Name,
         CodeName = codelistEntry.CodeName,
         Status = codelistEntry.Status,
     });
 }
예제 #2
0
 /// <summary>
 /// Removes a(n) CodelistEntry from this ENUM.
 /// <param name="codelistEntry">A(n) CodelistEntry.</param>
 /// </summary>
 public void RemoveCodelistEntry(ICodelistEntry codelistEntry)
 {
     UmlEnumeration.RemoveEnumerationLiteral(((UpccCodelistEntry)codelistEntry).UmlEnumerationLiteral);
 }
예제 #3
0
 /// <summary>
 /// Updates a(n) CodelistEntry to match the given <paramref name="specification"/>.
 /// <param name="codelistEntry">A(n) CodelistEntry.</param>
 /// <param name="specification">A new specification for the given CodelistEntry.</param>
 /// <returns>The updated CodelistEntry. Depending on the implementation, this might be the same updated instance or a new instance!</returns>
 /// </summary>
 public ICodelistEntry UpdateCodelistEntry(ICodelistEntry codelistEntry, CodelistEntrySpec specification)
 {
     return(new UpccCodelistEntry(UmlEnumeration.UpdateEnumerationLiteral(((UpccCodelistEntry)codelistEntry).UmlEnumerationLiteral, CodelistEntrySpecConverter.Convert(specification)), this));
 }