Exemplo n.º 1
0
            /// <summary>
            /// Adds the given element to the collection
            /// </summary>
            /// <param name="item">The item to add</param>
            public override void Add(IModelElement item)
            {
                if ((this._parent.EOpposite == null))
                {
                    IEReference eOppositeCasted = item.As <IEReference>();
                    if ((eOppositeCasted != null))
                    {
                        this._parent.EOpposite = eOppositeCasted;
                        return;
                    }
                }
                IEAttribute eKeysCasted = item.As <IEAttribute>();

                if ((eKeysCasted != null))
                {
                    this._parent.EKeys.Add(eKeysCasted);
                }
                if ((this._parent.Refines == null))
                {
                    IEReference refinesCasted = item.As <IEReference>();
                    if ((refinesCasted != null))
                    {
                        this._parent.Refines = refinesCasted;
                        return;
                    }
                }
            }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new observable property access proxy
 /// </summary>
 /// <param name="modelElement">The model instance element for which to create the property access proxy</param>
 public ResolveProxiesProxy(IEReference modelElement) :
     base(modelElement)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new observable property access proxy
 /// </summary>
 /// <param name="modelElement">The model instance element for which to create the property access proxy</param>
 public ContainmentProxy(IEReference modelElement) :
     base(modelElement)
 {
 }