Class JasimaBeanConverter

  • All Implemented Interfaces:
    com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher

    public class JasimaBeanConverter
    extends com.thoughtworks.xstream.converters.javabean.JavaBeanConverter
    Converts beans serialized using the jasima GUI, which uses a slightly modified XML format. This converter can read input generated by plain XStream as well as jasima_gui's PermissiveBeanConverter.
    Author:
    Robin Kreis
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.thoughtworks.xstream.converters.javabean.JavaBeanConverter

        com.thoughtworks.xstream.converters.javabean.JavaBeanConverter.DuplicateFieldException, com.thoughtworks.xstream.converters.javabean.JavaBeanConverter.DuplicatePropertyException
    • Constructor Summary

      Constructors 
      Constructor Description
      JasimaBeanConverter​(com.thoughtworks.xstream.mapper.Mapper mapper, boolean saveExtendedInfo)  
    • Constructor Detail

      • JasimaBeanConverter

        public JasimaBeanConverter​(com.thoughtworks.xstream.mapper.Mapper mapper,
                                   boolean saveExtendedInfo)
    • Method Detail

      • marshal

        public void marshal​(Object source,
                            com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
                            com.thoughtworks.xstream.converters.MarshallingContext context)
        Specified by:
        marshal in interface com.thoughtworks.xstream.converters.Converter
        Overrides:
        marshal in class com.thoughtworks.xstream.converters.javabean.JavaBeanConverter
      • unmarshal

        public Object unmarshal​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                                com.thoughtworks.xstream.converters.UnmarshallingContext context)
        Specified by:
        unmarshal in interface com.thoughtworks.xstream.converters.Converter
        Overrides:
        unmarshal in class com.thoughtworks.xstream.converters.javabean.JavaBeanConverter
      • instantiate

        protected Object instantiate​(com.thoughtworks.xstream.converters.UnmarshallingContext context)
      • determineType

        protected Class<?> determineType​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                                         Object result,
                                         String fieldName)