I

IGraphElementResolver

Interface for classes that can resolve graph elements based on their GraphML id attribute(s).
Inheritance Hierarchy

Members

No filters for this type

Methods

Resolve the GraphML id to an IEdge instance.
abstract

Parameters

context: IParseContext
The current parse context.
id: string
The id that should be resolved.

Return Value

IEdge
The IEdge that is defined by this GraphML id, or null if no such edge exists yet.
Resolve the GraphML id to an IGraph instance.
abstract

Parameters

context: IParseContext
The current parse context.
id: string
The id that should be resolved.

Return Value

IGraph
The IGraph that is defined by this GraphML id, or null if no such graph exists yet.
Resolve the GraphML id to an INode instance.
abstract

Parameters

context: IParseContext
The current parse context.
id: string
The id that should be resolved.

Return Value

INode
The INode that is defined by this GraphML id, or null if no such node exists yet.
Resolve the GraphML id to an IPort instance.
The port owner is specified by the ownerId attribute.
abstract

Parameters

context: IParseContext
The current parse context.
ownerId: string
The GraphML id of the port owner.
id: string
The id that should be resolved.

Return Value

IPort
The IPort that is defined by the GraphML ids, or null if no such port exists yet.

Static Methods

Creates an implementation of the interface IGraphElementResolver from the given definition.
The given object must contain exactly the abstract members of the IGraphElementResolver interface. No member may be omitted and no additional members can be added. While additional custom members can later be added directly on the instance, this is discouraged.
static

Parameters

Return Value

IGraphElementResolver
An instance of the IGraphElementResolver interface based on the given definition.