Class IdGenerator
Creates unique numeric IDs for all the elements in different FileSkeleton collection.
Inherited Members
Namespace: Sdl.Core.Bcm.BcmModel.Skeleton
Assembly: Sdl.Core.Bcm.BcmModel.dll
Syntax
public class IdGenerator
Constructors
IdGenerator()
Declaration
public IdGenerator()
Methods
GetNext<T>()
Gets the next ID.
Declaration
public int GetNext<T>() where T : SkeletonItem
Returns
| Type | Description |
|---|---|
| int | The next ID in the sequence. |
Type Parameters
| Name | Description |
|---|---|
| T |
UpdateFrom(Document)
Updates the ID sequence with the values from the specified Document.
Declaration
public void UpdateFrom(Document document)
Parameters
| Type | Name | Description |
|---|---|---|
| Document | document | The Document. |
UpdateFrom(FileSkeleton)
Updates the ID sequence with the values from the specified FileSkeleton.
Declaration
public void UpdateFrom(FileSkeleton skeleton)
Parameters
| Type | Name | Description |
|---|---|---|
| FileSkeleton | skeleton | The FileSkeleton. |
Update<T>(T)
Updates the ID sequence with the ID of the specified item.
Declaration
public void Update<T>(T item) where T : SkeletonItem
Parameters
| Type | Name | Description |
|---|---|---|
| T | item | The item. |
Type Parameters
| Name | Description |
|---|---|
| T |