y.io.gml
Class EdgeObjectEncoder

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

public class EdgeObjectEncoder
extends Object
implements ObjectEncoder

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


Constructor Summary
EdgeObjectEncoder()
           
EdgeObjectEncoder(ObjectEncoder realizerEncoder, ObjectEncoder labelEncoder)
           
 
Method Summary
 void encode(Object item, GMLEncoder enc)
          This method will try to encode the given object using the GMLEncoder
 ObjectEncoder getLabelEncoder()
          Getter for property labelEncoder.
 ObjectEncoder getRealizerEncoder()
          Getter for property realizerEncoder.
 void setLabelEncoder(ObjectEncoder labelEncoder)
          Setter for property labelEncoder.
 void setRealizerEncoder(ObjectEncoder realizerEncoder)
          Setter for property realizerEncoder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeObjectEncoder

public EdgeObjectEncoder()

EdgeObjectEncoder

public EdgeObjectEncoder(ObjectEncoder realizerEncoder,
                         ObjectEncoder labelEncoder)
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

getLabelEncoder

public ObjectEncoder getLabelEncoder()
Getter for property labelEncoder.

Returns:
Value of property labelEncoder.

setLabelEncoder

public void setLabelEncoder(ObjectEncoder labelEncoder)
Setter for property labelEncoder.

Parameters:
labelEncoder - New value of property labelEncoder.

getRealizerEncoder

public ObjectEncoder getRealizerEncoder()
Getter for property realizerEncoder.

Returns:
Value of property realizerEncoder.

setRealizerEncoder

public void setRealizerEncoder(ObjectEncoder realizerEncoder)
Setter for property realizerEncoder.

Parameters:
realizerEncoder - New value of property realizerEncoder.

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

2003