org.globus.cog.karajan.util.serialization
Class ElementConverter
java.lang.Object
org.globus.cog.karajan.util.serialization.AbstractKarajanConverter
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementConverter
public ElementConverter(KarajanSerializationContext kcontext)
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)