Class QuantityConverter

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

public class QuantityConverter extends AbstractConverter
Converter for Amount classes.
Author:
Nick Collier
  • Constructor Details

    • QuantityConverter

      public QuantityConverter()
  • Method Details

    • marshal

      public void marshal(Object o, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext marshallingContext)
    • unmarshal

      public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext unmarshallingContext)
    • canConvert

      public boolean canConvert(Class aClass)