Interface RedirectableConverter

All Superinterfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher
All Known Implementing Classes:
AbstractRedirectableConverter, Oauth2AccessTokenConverter, ReviewDataListConverter, SearchQueryDataConverter, TitleDataListConverter, VoucherConverter

public interface RedirectableConverter extends com.thoughtworks.xstream.converters.Converter
Converters implementing this interface can redirect some operations to another converter (set as a target converter).
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    setTargetConverter(com.thoughtworks.xstream.converters.Converter converter)
    Sets given converter as a target of redirection.

    Methods inherited from interface com.thoughtworks.xstream.converters.Converter

    marshal, unmarshal

    Methods inherited from interface com.thoughtworks.xstream.converters.ConverterMatcher

    canConvert
  • Method Details

    • setTargetConverter

      void setTargetConverter(com.thoughtworks.xstream.converters.Converter converter)
      Sets given converter as a target of redirection.
      Parameters:
      converter - converter to be used instead of current converter.
    • getConvertedClass

      Class getConvertedClass()
      Returns:
      Class that current converter is able to convert.