y.io.gml
Interface EncoderFactory

All Known Implementing Classes:
DefaultEncoderFactory, HierarchicGraphEncoderFactory

public interface EncoderFactory

This interface is a factory for ObjectEncoders. It is used by the GMLIOHandler to encode valid GML.


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 createNodeEncoder(ObjectEncoder graphEncoder)
          create an encoder that is capable of encoding a node
 

Method Detail

createGMLEncoder

public ObjectEncoder createGMLEncoder()
return an Encoder, that is capable of writing the gml header

Returns:
an encoder

createGraphEncoder

public ObjectEncoder createGraphEncoder(ObjectEncoder gmlEncoder)
create an encoder that is capable of encoding a graph

Parameters:
gmlEncoder - an encoder
Returns:
the parent encoder

createNodeEncoder

public ObjectEncoder createNodeEncoder(ObjectEncoder graphEncoder)
create an encoder that is capable of encoding a node

Parameters:
graphEncoder - the parent encoder
Returns:
an encoder

createEdgeEncoder

public ObjectEncoder createEdgeEncoder(ObjectEncoder graphEncoder)
create an encoder that is capable of encoding an edge

Parameters:
graphEncoder - the parent encoder
Returns:
an encoder

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

2003