y.io.gml
Class GraphObjectEncoder

java.lang.Object
  |
  +--y.io.gml.GraphObjectEncoder
All Implemented Interfaces:
ObjectEncoder

public class GraphObjectEncoder
extends Object
implements ObjectEncoder

This class is capable of encoding Graph in valid gml format. It is used by GMLIOHandler.


Constructor Summary
GraphObjectEncoder()
           
GraphObjectEncoder(ObjectEncoder nodeEncoder, ObjectEncoder edgeEncoder)
           
 
Method Summary
 void encode(Object item, GMLEncoder enc)
          This method will try to encode the given object using the GMLEncoder
 ObjectEncoder getEdgeEncoder()
          Getter for property edgeEncoder.
 ObjectEncoder getNodeEncoder()
          Getter for property nodeEncoder.
 void setEdgeEncoder(ObjectEncoder edgeEncoder)
          Setter for property edgeEncoder.
 void setNodeEncoder(ObjectEncoder nodeEncoder)
          Setter for property nodeEncoder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphObjectEncoder

public GraphObjectEncoder()

GraphObjectEncoder

public GraphObjectEncoder(ObjectEncoder nodeEncoder,
                          ObjectEncoder edgeEncoder)
Method Detail

encode

public void encode(Object item,
                   GMLEncoder enc)
            throws IOException
Description copied from interface: ObjectEncoder
This method will try to encode the given object using the GMLEncoder

Specified by:
encode in interface ObjectEncoder
IOException
Parameters:
item - the object to be encoded
enc - an encoder

getEdgeEncoder

public ObjectEncoder getEdgeEncoder()
Getter for property edgeEncoder.

Returns:
Value of property edgeEncoder.

setEdgeEncoder

public void setEdgeEncoder(ObjectEncoder edgeEncoder)
Setter for property edgeEncoder.

Parameters:
edgeEncoder - New value of property edgeEncoder.

getNodeEncoder

public ObjectEncoder getNodeEncoder()
Getter for property nodeEncoder.

Returns:
Value of property nodeEncoder.

setNodeEncoder

public void setNodeEncoder(ObjectEncoder nodeEncoder)
Setter for property nodeEncoder.

Parameters:
nodeEncoder - New value of property nodeEncoder.

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

2003