Class VersionableVisitorBase
Provides a base class from which implementers of IVersionableVisitor may derive.
Inheritance
System.Object
VersionableVisitorBase
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public class VersionableVisitorBase : object, IVersionableVisitor
Fields
depth
A stack representing the current location of the visitor in the item graph.
Declaration
public Stack<IVersionable> depth
Field Value
Type | Description |
---|---|
Stack<IVersionable> |
Methods
BeginVisitItem(IVersionable)
Called first when visiting an item, before visiting the item's children.
Declaration
public virtual void BeginVisitItem(IVersionable item)
Parameters
Type | Name | Description |
---|---|---|
IVersionable | item | The item. |
Implements
EndVisitItem(IVersionable)
Called after visiting all children of an item.
Declaration
public virtual void EndVisitItem(IVersionable item)
Parameters
Type | Name | Description |
---|---|---|
IVersionable | item | The item. |
Implements
HaveVisited(IdentifierTriple)
Determines whether an item with the specified identifier has already been visited.
Declaration
public bool HaveVisited(IdentifierTriple id)
Parameters
Type | Name | Description |
---|---|---|
IdentifierTriple | id | The unique identifier. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Implements
RegisterVisit(IdentifierTriple)
Registers the visit.
Declaration
public void RegisterVisit(IdentifierTriple id)
Parameters
Type | Name | Description |
---|---|---|
IdentifierTriple | id | The unique identifier. |