Class BehaviorRedefinedClassifierCollection
The collection class to implement the refined redefinedClassifier reference for the Behavior class
public class BehaviorRedefinedClassifierCollection : ICollectionExpression<IClassifier>, IEnumerableExpression<IClassifier>, IEnumerableExpression, ICollection<IClassifier>, IEnumerable<IClassifier>, IEnumerable
- Inheritance
-
BehaviorRedefinedClassifierCollection
- Implements
- Inherited Members
Constructors
BehaviorRedefinedClassifierCollection(IBehavior)
Creates a new instance
public BehaviorRedefinedClassifierCollection(IBehavior parent)
Parameters
parent
IBehavior
Properties
Count
Gets the amount of elements contained in this collection
public virtual int Count { get; }
Property Value
IsAttached
Returns that this composed collection is always attached.
public bool IsAttached { get; }
Property Value
IsReadOnly
Gets a value indicating that the collection is not read-only
public virtual bool IsReadOnly { get; }
Property Value
Methods
Add(IClassifier)
Adds the given element to the collection
public virtual void Add(IClassifier item)
Parameters
item
IClassifierThe item to add
AsNotifiable()
Gets an observable version of this collection
public virtual INotifyCollection<IClassifier> AsNotifiable()
Returns
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
IClassifierThe 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
intThe 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
IClassifierThe 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