y.io.gml
Class NodeObjectEncoder

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

public class NodeObjectEncoder
extends Object
implements ObjectEncoder

This class can encode Nodes in valid GML


Constructor Summary
NodeObjectEncoder()
           
NodeObjectEncoder(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

NodeObjectEncoder

public NodeObjectEncoder()

NodeObjectEncoder

public NodeObjectEncoder(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