xsmeral.semnet.xstream
Class MappingConverter

java.lang.Object
  extended by xsmeral.semnet.xstream.MappingConverter
All Implemented Interfaces:
Converter, ConverterMatcher

public class MappingConverter
extends Object
implements Converter

Converter for Mapping. The marshalled file is sorted by entry keys.


Constructor Summary
MappingConverter()
           
 
Method Summary
 boolean canConvert(Class type)
           
 void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
           
 Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingConverter

public MappingConverter()
Method Detail

marshal

public void marshal(Object source,
                    HierarchicalStreamWriter writer,
                    MarshallingContext context)
Specified by:
marshal in interface Converter

unmarshal

public Object unmarshal(HierarchicalStreamReader reader,
                        UnmarshallingContext context)
Specified by:
unmarshal in interface Converter

canConvert

public boolean canConvert(Class type)
Specified by:
canConvert in interface ConverterMatcher