public static CodelistEntrySpec CloneCodelistEntry(ICodelistEntry codelistEntry) { return(new CodelistEntrySpec { Name = codelistEntry.Name, CodeName = codelistEntry.CodeName, Status = codelistEntry.Status, }); }
/// <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); }
/// <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)); }