Class GenericUnmarshaller<T>

    • Constructor Detail

      • GenericUnmarshaller

        public GenericUnmarshaller​(Class<T> clazz)
        Creates a new instance of this class with the specified parameter.
        Parameters:
        clazz - the class of the result type (must not be null)
    • Method Detail

      • getResultType

        public Class<?> getResultType()
        Returns the class of the result type
        Returns:
        the class of the result type
      • canConvert

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

        public final void marshal​(Object value,
                                  com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
                                  com.thoughtworks.xstream.converters.MarshallingContext context)
        Specified by:
        marshal in interface com.thoughtworks.xstream.converters.Converter