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