Table of Contents

Class InterfaceRedefinedClassifierCollection

Namespace
NMF.Interop.Uml
Assembly
NMF.UMLInterop.dll

The collection class to implement the refined redefinedClassifier reference for the Interface class

public class InterfaceRedefinedClassifierCollection : ICollectionExpression<IClassifier>, IEnumerableExpression<IClassifier>, IEnumerableExpression, ICollection<IClassifier>, IEnumerable<IClassifier>, IEnumerable
Inheritance
InterfaceRedefinedClassifierCollection
Implements
Inherited Members

Constructors

InterfaceRedefinedClassifierCollection(IInterface)

Creates a new instance

public InterfaceRedefinedClassifierCollection(IInterface parent)

Parameters

parent IInterface

Properties

Count

Gets the amount of elements contained in this collection

public virtual int Count { get; }

Property Value

int

IsAttached

Returns that this composed collection is always attached.

public bool IsAttached { get; }

Property Value

bool

IsReadOnly

Gets a value indicating that the collection is not read-only

public virtual bool IsReadOnly { get; }

Property Value

bool

Methods

Add(IClassifier)

Adds the given element to the collection

public virtual void Add(IClassifier item)

Parameters

item IClassifier

The item to add

AsNotifiable()

Gets an observable version of this collection

public virtual INotifyCollection<IClassifier> AsNotifiable()

Returns

INotifyCollection<IClassifier>

Attach()

Attaches this collection class

public void Attach()

Clear()

Clears the collection and resets all references that implement it.

public virtual void Clear()

Contains(IClassifier)

Gets a value indicating whether the given element is contained in the collection

public virtual bool Contains(IClassifier item)

Parameters

item IClassifier

The item that should be looked out for

Returns

bool

True, if it is contained, otherwise False

CopyTo(IClassifier[], int)

Copies the contents of the collection to the given array starting from the given array index

public virtual void CopyTo(IClassifier[] array, int arrayIndex)

Parameters

array IClassifier[]

The array in which the elements should be copied

arrayIndex int

The starting index

Detach()

Detaches this collection class

public void Detach()

GetEnumerator()

Gets an enumerator that enumerates the collection

public virtual IEnumerator<IClassifier> GetEnumerator()

Returns

IEnumerator<IClassifier>

A generic enumerator

OnCollectionChanged(NotifyCollectionChangedEventArgs)

Fires the CollectionChanged event

protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs eventArgs)

Parameters

eventArgs NotifyCollectionChangedEventArgs

Remove(IClassifier)

Removes the given item from the collection

public virtual bool Remove(IClassifier item)

Parameters

item IClassifier

The item that should be removed

Returns

bool

True, if the item was removed, otherwise False

Events

CollectionChanged

Gets fired when the contents of this collection changes

public event NotifyCollectionChangedEventHandler CollectionChanged

Event Type

NotifyCollectionChangedEventHandler