Package | com.yworks.io.graphml |
Class | public class DefaultGraphMLIOHandler |
Inheritance | DefaultGraphMLIOHandler ![]() ![]() |
IInputHandler
s, IOutputHandler
s, ISerializer
s and
IDeserializer
s.
See also
Method | Defined By | ||
---|---|---|---|
Creates a DefaultGraphMLIOHandler that uses a default configuration suitable
for reading and writing the yFiles FLEX GraphML format including layout, style and label
data. | DefaultGraphMLIOHandler | ||
![]() | addEdgeAttribute(mapper:IMapper, attrName:String, type:String = string):void
Adds a GraphML attribute with edge scope that holds data of simple type. | GraphMLIOHandler | |
![]() | addGraphAttribute(mapper:IMapper, attrName:String, type:String = string):void
Adds a GraphML attribute with graph scope that holds data of simple type. | GraphMLIOHandler | |
![]() | addInputHandler(handler:IInputHandler):void
Adds a input handler that can parse <data> blocks. | GraphMLIOHandler | |
![]() | addNamespace(ns:Namespace):void
Adds a namespace to the header of a GraphML file. | GraphMLIOHandler | |
![]() | addNodeAttribute(mapper:IMapper, attrName:String, type:String = string):void
Adds a GraphML attribute with node scope that holds data of simple type. | GraphMLIOHandler | |
![]() | addOutputHandler(outputHandler:IOutputHandler, scope:String):void
Adds a subordinate output handler for the given
element scope to this GraphMLIOHandler. | GraphMLIOHandler | |
![]() | addRegistryEdgeAttribute(registryTag:Object, attrName:String, type:String = string):void
Adds a GraphML attribute with edge scope that holds data of simple type. | GraphMLIOHandler | |
![]() | addRegistryGraphAttribute(registryTag:Object, attrName:String, type:String = string):void
Adds a GraphML attribute with graph scope that holds data of simple type. | GraphMLIOHandler | |
![]() | addRegistryNodeAttribute(registryTag:Object, attrName:String, type:String = string):void
Adds a GraphML attribute with node scope that holds data of simple type. | GraphMLIOHandler | |
![]() |
Returns an iterable view of all input handlers that have been registered with this instance. | GraphMLIOHandler | |
![]() | getOutputHandlers(scope:String):Collection
Returns an editable view on the registered output handlers for GraphML attributes with
given scope that are registered with this GraphMLIOHandler. | GraphMLIOHandler | |
![]() |
Returns an Iterable of all deserializers that have been registered with this instance. | GraphMLIOHandler | |
![]() |
Returns an iterable view of all serializers that have been registered with this instance. | GraphMLIOHandler | |
![]() |
populate the given graph with the graph defined in the given xml file. | GraphMLIOHandler | |
![]() |
Populate the graph with the graph structure defined
in a graph file located at the URL. | GraphMLIOHandler | |
![]() | registerDeserializer(deserializer:IDeserializer):void
Register a IDeserializer instance for reading custom information. | GraphMLIOHandler | |
![]() | registerSerializer(serializer:ISerializer):void
Register a ISerializer instance for writing custom information. | GraphMLIOHandler | |
![]() | removeInputHandler(inputHandler:IInputHandler):void
Removes an input handler. | GraphMLIOHandler | |
![]() | removeOutputHandler(outputHandler:IOutputHandler, scope:String):void
Removes an output handler that was added for the given scope. | GraphMLIOHandler | |
![]() | unregisterDeserializer(deserializer:IDeserializer):void
Unregister an IDeserializer instance that was previously registered. | GraphMLIOHandler | |
![]() | unregisterSerializer(serializer:ISerializer):void
Unregister an ISerializer instance that was previously registered. | GraphMLIOHandler | |
![]() |
Write the given graph to a XML Object in GraphML format. | GraphMLIOHandler |
Method | Defined By | ||
---|---|---|---|
configure():void
Creates a default configuration that allows to read and write yFiles FLEX GraphML data. | DefaultGraphMLIOHandler | ||
![]() | configureDeserializers(context:GraphMLParseContext):void
Sets up all default IDeserializer instances on context. | GraphMLIOHandler | |
configureInput():void
Configure the I/O handler for reading the yFiles FLEX GraphML format. | DefaultGraphMLIOHandler | ||
![]() | configureInputHandlers(parser:GraphMLParser):void
Sets up all input handlers for the provided parser instance. | GraphMLIOHandler | |
configureOutput():void
Configure the I/O handler for writing the yFiles FLEX GraphML format. | DefaultGraphMLIOHandler | ||
![]() | configureSerializers(context:GraphMLWriteContext):void
Configures context to use all registered serializers. | GraphMLIOHandler | |
![]() |
Create the DirectGraphMLWriter instance that is used for writing GraphML output. | GraphMLIOHandler | |
![]() |
Create a suitable instance of IGraphElementFactory that can handle the given graph
| GraphMLIOHandler | |
![]() |
Create an IGraphElementProvider instance that provides the graph elements that are to be written. | GraphMLIOHandler | |
![]() |
Create the GraphMLParser instance that is used for writing GraphML output. | GraphMLIOHandler | |
![]() |
Callback method for the creation of a new read context. | GraphMLIOHandler | |
![]() |
Callback method for the creation of a new write context. | GraphMLIOHandler | |
![]() |
Create the IXmlWriter instance that is used for low-level XML writing. | GraphMLIOHandler | |
![]() | initializeHandlers():void
Callback for subclasses to register default data handlers. | GraphMLIOHandler |
DefaultGraphMLIOHandler | () | Constructor |
public function DefaultGraphMLIOHandler()
Creates a DefaultGraphMLIOHandler that uses a default configuration suitable for reading and writing the yFiles FLEX GraphML format including layout, style and label data.
See also
configure | () | method |
protected function configure():void
Creates a default configuration that allows to read and write yFiles FLEX GraphML data.
DefaultGraph.MAPPER_KEY_MODE_2_ID
and
DefaultGraph.MAPPER_KEY_NODE_2_ID
mapper dataconfigureInput
and configureOutput
See also
configureInput | () | method |
protected function configureInput():void
Configure the I/O handler for reading the yFiles FLEX GraphML format.
readStyles
and readRealizers
flags.readPortLocationModel
flag.inputHandlerProvider
in a AutoMapperInputHandlerProvider
to allow
for automatic deserialization of mapper data.configureOutput | () | method |
protected function configureOutput():void
Configure the I/O handler for writing the yFiles FLEX GraphML format.
writeStyles
flag.readPortLocationModel
flag.outputHandlerProvider
in a AutoMapperOutputHandlerProvider
to allow
for automatic serialization of mapper data.