y.io.gml
Class HierarchicGraphEncoderFactory

java.lang.Object
  |
  +--y.io.gml.HierarchicGraphEncoderFactory
All Implemented Interfaces:
EncoderFactory

public class HierarchicGraphEncoderFactory
extends Object
implements EncoderFactory

This factory can be installed with the GMLIOHandler to support the serialization of hierarchic graphs in GML


Constructor Summary
HierarchicGraphEncoderFactory()
           
 
Method Summary
 ObjectEncoder createEdgeEncoder(ObjectEncoder graphEncoder)
          create an encoder that is capable of encoding an edge
 ObjectEncoder createGMLEncoder()
          return an Encoder, that is capable of writing the gml header
 ObjectEncoder createGraphEncoder(ObjectEncoder gmlEncoder)
          create an encoder that is capable of encoding a graph
 ObjectEncoder createInterEdgeEncoder(ObjectEncoder graphEncoder)
           
 ObjectEncoder createNodeEncoder(ObjectEncoder graphEncoder)
          create an encoder that is capable of encoding a node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HierarchicGraphEncoderFactory

public HierarchicGraphEncoderFactory()
Method Detail

createEdgeEncoder

public ObjectEncoder createEdgeEncoder(ObjectEncoder graphEncoder)
Description copied from interface: EncoderFactory
create an encoder that is capable of encoding an edge

Specified by:
createEdgeEncoder in interface EncoderFactory
Parameters:
graphEncoder - the parent encoder
Returns:
an encoder

createGMLEncoder

public ObjectEncoder createGMLEncoder()
Description copied from interface: EncoderFactory
return an Encoder, that is capable of writing the gml header

Specified by:
createGMLEncoder in interface EncoderFactory
Returns:
an encoder

createGraphEncoder

public ObjectEncoder createGraphEncoder(ObjectEncoder gmlEncoder)
Description copied from interface: EncoderFactory
create an encoder that is capable of encoding a graph

Specified by:
createGraphEncoder in interface EncoderFactory
Parameters:
gmlEncoder - an encoder
Returns:
the parent encoder

createNodeEncoder

public ObjectEncoder createNodeEncoder(ObjectEncoder graphEncoder)
Description copied from interface: EncoderFactory
create an encoder that is capable of encoding a node

Specified by:
createNodeEncoder in interface EncoderFactory
Parameters:
graphEncoder - the parent encoder
Returns:
an encoder

createInterEdgeEncoder

public ObjectEncoder createInterEdgeEncoder(ObjectEncoder graphEncoder)

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

2003