Class VersionableVisitorBase
Provides a base class from which implementers of IVersionableVisitor may derive.
Inheritance
VersionableVisitorBase
Implements
Inherited Members
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public class VersionableVisitorBase : 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. |
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. |
HaveVisited(IVersionable)
Determines whether an item with the specified identifier has already been visited.
Declaration
public bool HaveVisited(IVersionable item)
Parameters
Type | Name | Description |
---|---|---|
IVersionable | item | The item. |
Returns
Type | Description |
---|---|
bool |
|
RegisterVisit(IVersionable)
Registers the visit.
Declaration
public void RegisterVisit(IVersionable item)
Parameters
Type | Name | Description |
---|---|---|
IVersionable | item | The item. |