y.io.gml
Class GmlObjectEncoder

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

public class GmlObjectEncoder
extends Object
implements ObjectEncoder

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


Constructor Summary
GmlObjectEncoder()
           
GmlObjectEncoder(ObjectEncoder graphEncoder)
           
 
Method Summary
 void encode(Object item, GMLEncoder encoder)
          This method will try to encode the given object using the GMLEncoder
 ObjectEncoder getGraphEncoder()
          Getter for property graphEncoder.
 void setGraphEncoder(ObjectEncoder graphEncoder)
          Setter for property graphEncoder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GmlObjectEncoder

public GmlObjectEncoder()

GmlObjectEncoder

public GmlObjectEncoder(ObjectEncoder graphEncoder)
Method Detail

encode

public void encode(Object item,
                   GMLEncoder encoder)
            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
encoder - an encoder

getGraphEncoder

public ObjectEncoder getGraphEncoder()
Getter for property graphEncoder.

Returns:
Value of property graphEncoder.

setGraphEncoder

public void setGraphEncoder(ObjectEncoder graphEncoder)
Setter for property graphEncoder.

Parameters:
graphEncoder - New value of property graphEncoder.

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

2003