Search this API

y.io.graphml.input
Interface GraphElementResolver


public interface GraphElementResolver

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

 
Your browser does not support SVG content.

Method Summary
 Edge resolveEdge(GraphMLParseContext context, java.lang.String id)
          Resolve the GraphML id to an Edge instance.
 Graph resolveGraph(GraphMLParseContext context, java.lang.String id)
          Resolve the GraphML id to an Graph instance.
 Node resolveNode(GraphMLParseContext context, java.lang.String id)
          Resolve the GraphML id to an Node instance.
 Port resolvePort(GraphMLParseContext context, java.lang.String ownerId, java.lang.String name)
          Resolve the GraphML id to an Port instance.
 

Method Detail

resolveNode

Node resolveNode(GraphMLParseContext context,
                 java.lang.String id)
Resolve the GraphML id to an Node instance.

Parameters:
context - The current parse context.
id - The id that should be resolved.
Returns:
The Node that is defined by this GraphML id, or null if no such node exists yet.

resolveGraph

Graph resolveGraph(GraphMLParseContext context,
                   java.lang.String id)
Resolve the GraphML id to an Graph instance.

Parameters:
context - The current parse context.
id - The id that should be resolved.
Returns:
The Graph that is defined by this GraphML id, or null if no such graph exists yet.

resolvePort

Port resolvePort(GraphMLParseContext context,
                 java.lang.String ownerId,
                 java.lang.String name)
Resolve the GraphML id to an Port instance. The port owner is specified by the ownerId attribute.

The ownerId is required since port names are only locally unique.

Parameters:
context - The current parse context.
ownerId - The GraphML id of the port owner.
name - The id that should be resolved.
Returns:
The Port that is defined by the GraphML ids, or null if no such port exists yet.

resolveEdge

Edge resolveEdge(GraphMLParseContext context,
                 java.lang.String id)
Resolve the GraphML id to an Edge instance.

Parameters:
context - The current parse context.
id - The id that should be resolved.
Returns:
The Edge that is defined by this GraphML id, or null if no such edge exists yet.

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.