Class AliasRegistry
java.lang.Object
ca.mcscert.jpipe.operators.AliasRegistry
Mutable registry that maps original element ids to the merged id chosen
during Phase 1 of
CompositionOperator.apply(String, List, Map).
Merge functions populate this registry by calling
register(String, List) or register(String, String).
CompositionOperator then uses it in Phase 2 to translate original
edge endpoints to their merged counterparts, and emits one
RegisterAlias command per entry so
the mapping survives in the compiled Unit.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaliases()Read-only view of all registered aliases.voidConvenience single-id overload.voidRecords thatnewIdis the merged identity of alloldIds.Returns the new id thatoldIdwas merged into, oroldIditself if no alias was registered (element was kept as-is).
-
Constructor Details
-
AliasRegistry
public AliasRegistry()
-
-
Method Details
-
register
-
register
-
resolve
-
aliases
-