Class VersionedConverter<T>

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected VersionedConverter​(int version)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      int getVersion()  
      abstract void marshal​(T source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)  
      protected <F> F readField​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context, Class<F> type)  
      abstract T unmarshal​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)  
      protected void writeField​(String name, Object value, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)  
    • Constructor Detail

      • VersionedConverter

        protected VersionedConverter​(int version)
    • Method Detail

      • getVersion

        public int getVersion()
      • marshal

        public abstract void marshal​(T source,
                                     com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
                                     com.thoughtworks.xstream.converters.MarshallingContext context)
      • unmarshal

        public abstract T unmarshal​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                                    com.thoughtworks.xstream.converters.UnmarshallingContext context)
      • writeField

        protected void writeField​(String name,
                                  Object value,
                                  com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
                                  com.thoughtworks.xstream.converters.MarshallingContext context)
      • readField

        protected <F> F readField​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                                  com.thoughtworks.xstream.converters.UnmarshallingContext context,
                                  Class<F> type)