Class ChildItemCollection
Represents a collection of IVersionable items that are children of some other IVersionable item.
Implements
Inherited Members
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public class ChildItemCollection : Collection<IVersionable>, IList<IVersionable>, ICollection<IVersionable>, IList, ICollection, IReadOnlyList<IVersionable>, IReadOnlyCollection<IVersionable>, IEnumerable<IVersionable>, IEnumerableConstructors
ChildItemCollection(IVersionable)
Create a new child collection object tied to a parent
Declaration
public ChildItemCollection(IVersionable parent = null)Parameters
| Type | Name | Description | 
|---|---|---|
| IVersionable | parent | 
Properties
NonConcreteReferences
Child items that are referenced but never instantiated as a child in the object model.
Declaration
public Collection<TypedIdTriple> NonConcreteReferences { get; set; }Property Value
| Type | Description | 
|---|---|
| Collection<TypedIdTriple> | 
Parent
The parent item of the child items
Declaration
public IVersionable Parent { get; set; }Property Value
| Type | Description | 
|---|---|
| IVersionable | 
Methods
GetAllRelationships()
Get all relationships that can be either instantiated in the model or are non concrete references.
Declaration
public IEnumerable<TypedIdTriple> GetAllRelationships()Returns
| Type | Description | 
|---|---|
| IEnumerable<TypedIdTriple> | Typed identifiers of all referenced items. | 
Merge(ChildItemCollection)
Merges two collections.
Declaration
public void Merge(ChildItemCollection second)Parameters
| Type | Name | Description | 
|---|---|---|
| ChildItemCollection | second | The second collection, which is merged into the first collection. |