y.io.gml
Class HierarchyNodeObjectEncoder
java.lang.Object
|
+--y.io.gml.HierarchyNodeObjectEncoder
- All Implemented Interfaces:
- ObjectEncoder
- public class HierarchyNodeObjectEncoder
- extends Object
- implements ObjectEncoder
This class is capable of encoding a node of a Hierarchic Graph in valid gml format.
It is used by HierarchicGraphEncoderFactory.
Method Summary |
void |
encode(Object item,
GMLEncoder enc)
This method will try to encode the given object using the GMLEncoder |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HierarchyNodeObjectEncoder
public HierarchyNodeObjectEncoder(HierarchicGraphObjectEncoder parent,
HierarchicGraphEncoderFactory factory)
HierarchyNodeObjectEncoder
public HierarchyNodeObjectEncoder(ObjectEncoder nodeEncoder,
HierarchicGraphObjectEncoder parent,
HierarchicGraphEncoderFactory factory)
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 encodedenc
- an encoder