Packagecom.yworks.io.graphml.writer
Interfacepublic interface IIdProvider
Implementors DirectGraphMLWriter

Interface that allows to control the id attribute value of core GraphML elements.

Note: Implementations must ensure that ids are unique for each element domain, since the framework makes no attempt to recognize duplicate id values itself.



Public Methods
 MethodDefined By
  
getEdgeId(o:Object, context:GraphMLWriteContext):String
Get an ID for the specified edge object
IIdProvider
  
getGraphId(o:Object, context:GraphMLWriteContext):String
Get an ID for the specified graph object
IIdProvider
  
getNodeId(o:Object, context:GraphMLWriteContext):String
Get an ID for the specified node object
IIdProvider
  
getPortId(o:Object, context:GraphMLWriteContext):String
Get an ID for the specified port object
IIdProvider
Method Detail
getEdgeId()method
public function getEdgeId(o:Object, context:GraphMLWriteContext):String

Get an ID for the specified edge object

Parameters

o:Object — the current edge object
 
context:GraphMLWriteContext — the current write context, for further information to the provider

Returns
String — an ID for the specified edge object
getGraphId()method 
public function getGraphId(o:Object, context:GraphMLWriteContext):String

Get an ID for the specified graph object

Parameters

o:Object — the current graph object
 
context:GraphMLWriteContext — the current write context, for further information to the provider

Returns
String — an ID for the specified graph object
getNodeId()method 
public function getNodeId(o:Object, context:GraphMLWriteContext):String

Get an ID for the specified node object

Parameters

o:Object — the current node object
 
context:GraphMLWriteContext — the current write context, for further information to the provider

Returns
String — an ID for the specified node object
getPortId()method 
public function getPortId(o:Object, context:GraphMLWriteContext):String

Get an ID for the specified port object

Parameters

o:Object — the current port object
 
context:GraphMLWriteContext — the current write context, for further information to the provider

Returns
String — an ID for the specified port object