Class AnyTypeAdapter


public final class AnyTypeAdapter extends XmlAdapter<Object,Object>
XmlAdapter useful for mapping interfaces. See The JAXB user's guide for more about this adapter class.
Since:
JAXB 2.1
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • AnyTypeAdapter

      public AnyTypeAdapter()
      Default constructor.
  • Method Details

    • unmarshal

      public Object unmarshal(Object v)
      Noop. Just returns the object given as the argument.
      Specified by:
      unmarshal in class XmlAdapter<Object,Object>
      Parameters:
      v - The value to be converted. Can be null.
    • marshal

      public Object marshal(Object v)
      Noop. Just returns the object given as the argument.
      Specified by:
      marshal in class XmlAdapter<Object,Object>
      Parameters:
      v - The value to be converted. Can be null.