|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphElementResolver
Interface for classes that can resolve graph elements based on their GraphML id attribute(s).
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 |
---|
Node resolveNode(GraphMLParseContext context, java.lang.String id)
id
to an Node
instance.
context
- The current parse context.id
- The id that should be resolved.
Node
that is defined by this GraphML id
, or null
if no such node exists yet.Graph resolveGraph(GraphMLParseContext context, java.lang.String id)
id
to an Graph
instance.
context
- The current parse context.id
- The id that should be resolved.
Graph
that is defined by this GraphML id
, or null
if no such graph exists yet.Port resolvePort(GraphMLParseContext context, java.lang.String ownerId, java.lang.String name)
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.
context
- The current parse context.ownerId
- The GraphML id of the port owner.name
- The id that should be resolved.
Port
that is defined by the GraphML ids, or null
if no such port exists yet.Edge resolveEdge(GraphMLParseContext context, java.lang.String id)
id
to an Edge
instance.
context
- The current parse context.id
- The id that should be resolved.
Edge
that is defined by this GraphML id
, or null
if no such edge exists yet.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |