com.yworks.yfiles.bpmn.io
Class BpmnGraphMLIOHandler

java.lang.Object
  extended byy.io.IOHandler
      extended byy.io.GraphMLIOHandler
          extended bycom.yworks.yfiles.bpmn.io.BpmnGraphMLIOHandler

public class BpmnGraphMLIOHandler
extends GraphMLIOHandler

Reads and writes a BPMN diagram in GraphML format.

Note: Client code has to ensure that yBPMN specific node realizer and node port configurations have been registered before reading GraphML files that reference these configurations. The currently existing configurations are automatically registered in the static initializers of classes BpmnRealizerFactory and EventPortSupport. Therefore accessing any constant or method declared in these classes will suffice to trigger the necessary registration.

 

Constructor Summary
protected BpmnGraphMLIOHandler()
          Initializes a new BpmnGraphMLIOHandler instance.
 
Method Summary
protected  Graph2DGraphMLHandler createGraphMLHandler()
          Creates a GraphML handler that supports yBPMN specific features such as event node ports.
static GraphMLIOHandler newInstance()
          Creates a new instance.
 
Methods inherited from class y.io.GraphMLIOHandler
addEdgeRealizerSerializer, addNodeRealizerSerializer, getFileFormatString, getFileNameExtension, getGraphMLHandler, read, read, write, write
 
Methods inherited from class y.io.IOHandler
canRead, canWrite, canWriteSubset, createObjectInputStream, createObjectOutputStream, hide, read, read, shouldSerialize, shouldSerialize, write, writeSubset, writeSubset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BpmnGraphMLIOHandler

protected BpmnGraphMLIOHandler()
Initializes a new BpmnGraphMLIOHandler instance.

Method Detail

newInstance

public static GraphMLIOHandler newInstance()
Creates a new instance. Registers serialization and deserialization handlers for ChoreographyLabelModel and BpmnIcon.


createGraphMLHandler

protected Graph2DGraphMLHandler createGraphMLHandler()
Creates a GraphML handler that supports yBPMN specific features such as event node ports.

Returns:
a GraphML handler that supports yBPMN specific features such as event node ports.
See Also:
EventPortSupport


© Copyright 2010-2014,
yWorks GmbH.
All rights reserved.