Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     return(UmlEnumeration != null ? UmlEnumeration.GetHashCode() : 0);
 }
Ejemplo n.º 2
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));
 }
Ejemplo n.º 3
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);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Creates a(n) CodelistEntry based on the given <paramref name="specification"/>.
 /// <param name="specification">A specification for a(n) CodelistEntry.</param>
 /// <returns>The newly created CodelistEntry.</returns>
 /// </summary>
 public ICodelistEntry CreateCodelistEntry(CodelistEntrySpec specification)
 {
     return(new UpccCodelistEntry(UmlEnumeration.CreateEnumerationLiteral(CodelistEntrySpecConverter.Convert(specification)), this));
 }