Skip to content

Commit

Permalink
regenerate NMeta
Browse files Browse the repository at this point in the history
  • Loading branch information
georghinkel committed Sep 13, 2024
1 parent 206a6a2 commit b03ede2
Show file tree
Hide file tree
Showing 59 changed files with 1,645 additions and 1,545 deletions.
48 changes: 28 additions & 20 deletions Models/Models/Meta/AnnotationEntry.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:6.0.16
// Runtime Version:6.0.26
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand All @@ -28,6 +28,7 @@
using System.Diagnostics;
using System.Linq;


namespace NMF.Models.Meta
{

Expand Down Expand Up @@ -175,40 +176,40 @@ public override IEnumerableExpression<NMF.Models.IModelElement> ReferencedElemen
}

/// <summary>
/// Gets fired before the Source property changes its value
/// Gets fired when the Source property changed its value
/// </summary>
public event System.EventHandler<ValueChangedEventArgs> SourceChanging;
public event System.EventHandler<ValueChangedEventArgs> SourceChanged;

/// <summary>
/// Gets fired when the Source property changed its value
/// Gets fired before the Source property changes its value
/// </summary>
public event System.EventHandler<ValueChangedEventArgs> SourceChanged;
public event System.EventHandler<ValueChangedEventArgs> SourceChanging;

private static ITypedElement RetrieveSourceAttribute()
{
return ((ITypedElement)(((NMF.Models.ModelElement)(NMF.Models.Meta.AnnotationEntry.ClassInstance)).Resolve("Source")));
}

/// <summary>
/// Raises the SourceChanging event
/// Raises the SourceChanged event
/// </summary>
/// <param name="eventArgs">The event data</param>
protected virtual void OnSourceChanging(ValueChangedEventArgs eventArgs)
protected virtual void OnSourceChanged(ValueChangedEventArgs eventArgs)
{
System.EventHandler<ValueChangedEventArgs> handler = this.SourceChanging;
System.EventHandler<ValueChangedEventArgs> handler = this.SourceChanged;
if ((handler != null))
{
handler.Invoke(this, eventArgs);
}
}

/// <summary>
/// Raises the SourceChanged event
/// Raises the SourceChanging event
/// </summary>
/// <param name="eventArgs">The event data</param>
protected virtual void OnSourceChanged(ValueChangedEventArgs eventArgs)
protected virtual void OnSourceChanging(ValueChangedEventArgs eventArgs)
{
System.EventHandler<ValueChangedEventArgs> handler = this.SourceChanged;
System.EventHandler<ValueChangedEventArgs> handler = this.SourceChanging;
if ((handler != null))
{
handler.Invoke(this, eventArgs);
Expand Down Expand Up @@ -429,14 +430,18 @@ public override int Count
return count;
}
}

/// <inheritdoc />

/// <summary>
/// Registers event hooks to keep the collection up to date
/// </summary>
protected override void AttachCore()
{
this._parent.Annotations.AsNotifiable().CollectionChanged += this.PropagateCollectionChanges;
}

/// <inheritdoc />

/// <summary>
/// Unregisters all event hooks registered by AttachCore
/// </summary>
protected override void DetachCore()
{
this._parent.Annotations.AsNotifiable().CollectionChanged -= this.PropagateCollectionChanges;
Expand Down Expand Up @@ -555,14 +560,18 @@ public override int Count
return count;
}
}

/// <inheritdoc/>

/// <summary>
/// Registers event hooks to keep the collection up to date
/// </summary>
protected override void AttachCore()
{
this._parent.Annotations.AsNotifiable().CollectionChanged += this.PropagateCollectionChanges;
}

/// <inheritdoc/>

/// <summary>
/// Unregisters all event hooks registered by AttachCore
/// </summary>
protected override void DetachCore()
{
this._parent.Annotations.AsNotifiable().CollectionChanged -= this.PropagateCollectionChanges;
Expand Down Expand Up @@ -685,4 +694,3 @@ public override string Value
}
}
}

35 changes: 10 additions & 25 deletions Models/Models/Meta/AnnotationSet.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:6.0.16
// Runtime Version:6.0.26
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand All @@ -28,17 +28,18 @@
using System.Diagnostics;
using System.Linq;


namespace NMF.Models.Meta
{


/// <summary>
/// The Annotation extension
/// The AnnotationSet extension
/// </summary>
[XmlNamespaceAttribute("http://nmf.codeplex.com/nmeta/")]
[XmlNamespacePrefixAttribute("nmeta")]
[ModelRepresentationClassAttribute("http://nmf.codeplex.com/nmeta/#//AnnotationSet")]
public class AnnotationSet : ModelElementExtension<IModelElement, AnnotationSet>
public partial class AnnotationSet : ModelElementExtension<IModelElement, AnnotationSet>
{

private static Lazy<ITypedElement> _annotationsReference = new Lazy<ITypedElement>(RetrieveAnnotationsReference);
Expand All @@ -50,7 +51,7 @@ public class AnnotationSet : ModelElementExtension<IModelElement, AnnotationSet>
private ObservableCompositionOrderedSet<NMF.Models.Meta.IAnnotationEntry> _annotations;

private static IExtension _extensionType;

/// <summary>
/// Creates a new instance
/// </summary>
Expand All @@ -76,22 +77,7 @@ public IOrderedSetExpression<NMF.Models.Meta.IAnnotationEntry> Annotations
return this._annotations;
}
}

/// <summary>
/// Gets the relative URI fragment for the given child model element
/// </summary>
/// <returns>A fragment of the relative URI</returns>
/// <param name="element">The element that should be looked for</param>
protected override string GetRelativePathForNonIdentifiedChild(IModelElement element)
{
int annotationsIndex = ModelHelper.IndexOfReference(this.Annotations, element);
if ((annotationsIndex != -1))
{
return ModelHelper.CreatePath("Annotations", annotationsIndex);
}
return base.GetRelativePathForNonIdentifiedChild(element);
}


private static ITypedElement RetrieveAnnotationsReference()
{
return ((ITypedElement)(((NMF.Models.ModelElement)(NMF.Models.Meta.AnnotationSet.ClassInstance)).Resolve("Annotations")));
Expand All @@ -118,7 +104,7 @@ private void AnnotationsCollectionChanged(object sender, NotifyCollectionChanged
}

/// <summary>
/// Gets the Annotation extension from the given model element
/// Gets the AnnotationSet extension from the given model element
/// </summary>
/// <returns>The extension object or null, if the model element does not have this extension</returns>
/// <param name="parent">The parent model element that may hold the extension</param>
Expand All @@ -145,10 +131,9 @@ public override IExtension GetExtension()
{
if ((_extensionType == null))
{
_extensionType = ((IExtension)(MetaRepository.Instance.Resolve("http://nmf.codeplex.com/nmeta/#//Annotation")));
_extensionType = ((IExtension)(MetaRepository.Instance.Resolve("http://nmf.codeplex.com/nmeta/#//AnnotationSet")));
}
return _extensionType;
}
}
}

Loading

0 comments on commit b03ede2

Please sign in to comment.