Class DefaultContextConverter

java.lang.Object
repast.simphony.xml.AbstractConverter
repast.simphony.xml.DefaultContextConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher

public class DefaultContextConverter extends AbstractConverter implements com.thoughtworks.xstream.converters.Converter
XStream converter for DefaultContexts.
Author:
Nick Collier
  • Constructor Details

    • DefaultContextConverter

      public DefaultContextConverter()
  • Method Details

    • canConvert

      public boolean canConvert(Class aClass)
      Specified by:
      canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
    • marshal

      public void marshal(Object obj, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext mContext)
      Specified by:
      marshal in interface com.thoughtworks.xstream.converters.Converter
    • unmarshal

      public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext umContext)
      Specified by:
      unmarshal in interface com.thoughtworks.xstream.converters.Converter