org.globus.cog.karajan.util.serialization
Class ElementConverter

java.lang.Object
  extended by org.globus.cog.karajan.util.serialization.AbstractKarajanConverter
      extended by org.globus.cog.karajan.util.serialization.ElementConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter
Direct Known Subclasses:
ProjectNodeConverter, RootlessConverter

public class ElementConverter
extends AbstractKarajanConverter


Constructor Summary
ElementConverter(KarajanSerializationContext kcontext)
           
 
Method Summary
 boolean canConvert(Class cls)
           
 void marshal(Object elem, com.thoughtworks.xstream.io.HierarchicalStreamWriter wr, com.thoughtworks.xstream.converters.MarshallingContext context)
           
protected  FlowElement readChild(FlowElement wrapper, com.thoughtworks.xstream.io.HierarchicalStreamReader rd, com.thoughtworks.xstream.converters.UnmarshallingContext context)
           
protected  void readChildren(FlowElement node, com.thoughtworks.xstream.io.HierarchicalStreamReader rd, com.thoughtworks.xstream.converters.UnmarshallingContext context)
           
protected  void setProperties(FlowElement wrapper, com.thoughtworks.xstream.io.HierarchicalStreamReader rd, com.thoughtworks.xstream.converters.UnmarshallingContext context)
           
 Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader rd, com.thoughtworks.xstream.converters.UnmarshallingContext context)
           
 
Methods inherited from class org.globus.cog.karajan.util.serialization.AbstractKarajanConverter
getKContext, marshalObject, marshalObject, marshalObject, marshalObjectCls, unmarshalObject, unmarshalObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementConverter

public ElementConverter(KarajanSerializationContext kcontext)
Method Detail

canConvert

public boolean canConvert(Class cls)

marshal

public void marshal(Object elem,
                    com.thoughtworks.xstream.io.HierarchicalStreamWriter wr,
                    com.thoughtworks.xstream.converters.MarshallingContext context)

unmarshal

public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader rd,
                        com.thoughtworks.xstream.converters.UnmarshallingContext context)

setProperties

protected void setProperties(FlowElement wrapper,
                             com.thoughtworks.xstream.io.HierarchicalStreamReader rd,
                             com.thoughtworks.xstream.converters.UnmarshallingContext context)

readChildren

protected void readChildren(FlowElement node,
                            com.thoughtworks.xstream.io.HierarchicalStreamReader rd,
                            com.thoughtworks.xstream.converters.UnmarshallingContext context)

readChild

protected FlowElement readChild(FlowElement wrapper,
                                com.thoughtworks.xstream.io.HierarchicalStreamReader rd,
                                com.thoughtworks.xstream.converters.UnmarshallingContext context)