Show / Hide Table of Contents

Class GraphPopulator

A visitor that populates the items in a graph with information from a repository.

Inheritance
object
VersionableVisitorBase
GraphPopulator
Implements
IVersionableVisitor
Inherited Members
VersionableVisitorBase.depth
VersionableVisitorBase.HaveVisited(IVersionable)
VersionableVisitorBase.RegisterVisit(IVersionable)
VersionableVisitorBase.EndVisitItem(IVersionable)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model.Repository
Assembly: Algenta.Colectica.Model.dll
Syntax
public class GraphPopulator : VersionableVisitorBase, IVersionableVisitor

Constructors

GraphPopulator(RepositoryClientBase)

Initializes a new instance of the GraphPopulator class.

Declaration
public GraphPopulator(RepositoryClientBase baseClient)
Parameters
Type Name Description
RepositoryClientBase baseClient

The repository client used to populate items.

Properties

ChildProcessing

Gets or sets the method used to process children.

Declaration
public ChildReferenceProcessing ChildProcessing { get; set; }
Property Value
Type Description
ChildReferenceProcessing

MissingItems

Gets a collection of items that were not present in the repository.

Declaration
public Collection<IVersionable> MissingItems { get; }
Property Value
Type Description
Collection<IVersionable>

TypesToPopulate

The types of items that should be populated. If no items are added to the collection, all types will be populated.

Declaration
public Collection<Guid> TypesToPopulate { get; }
Property Value
Type Description
Collection<Guid>

UnfoundChildren

Gets a list of child items that were not present in the repository. Items are added to this list when the item being populated is present, but one or more of its children are not.

Declaration
public List<UnfoundChild> UnfoundChildren { get; set; }
Property Value
Type Description
List<UnfoundChild>

VisitedItems

Gets the items that have been visited.

Declaration
public Dictionary<IdentifierTriple, Collection<IVersionable>> VisitedItems { get; }
Property Value
Type Description
Dictionary<IdentifierTriple, Collection<IVersionable>>

Methods

BeginVisitItem(IVersionable)

Called first when visiting an item, before visiting the item's children. Attempts to populate the item from the repository.

Declaration
public override void BeginVisitItem(IVersionable item)
Parameters
Type Name Description
IVersionable item

The item being visited.

Overrides
VersionableVisitorBase.BeginVisitItem(IVersionable)

ShouldPopulateType(Guid)

Returns whether items of the specified type should be populated.

Declaration
public bool ShouldPopulateType(Guid type)
Parameters
Type Name Description
Guid type

The item type.

Returns
Type Description
bool

true if items of the specified type should be populated; otherwise false.

Implements

IVersionableVisitor

Extension Methods

Extensions.Yield<T>(T)
In this article
Back to top Generated by DocFX