Interface IdGenerator
Defines how identifiers are generated and tracked for model elements and relationships.
public interface IdGenerator
Methods
Found(string)
Called when loading/deserializing a model, to indicate that the specified ID has been found (and shouldn't be reused when generating new IDs).
void Found(string id)
Parameters
idstringThe ID that has been found.
GenerateId(Element)
Generates an ID for the specified model element.
string GenerateId(Element element)
Parameters
elementElementan Element instance
Returns
- string
the ID
GenerateId(Relationship)
Generates an ID for the specified relationship.
string GenerateId(Relationship relationship)
Parameters
relationshipRelationshipA relationship instance.
Returns
- string
The generated identifier.