Package com.norconex.commons.lang.convert

# Class GenericXmlAdapter<T>

java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<String,T>
com.norconex.commons.lang.convert.GenericXmlAdapter<T>

Direct Known Subclasses:
  `CharsetConverter.XmlAdapter`, `ContentTypeConverter.XmlAdapter`, `DimensionConverter.XmlAdapter`, `DurationConverter.XmlAdapter`, `FileConverter.XmlAdapter`, `InstantConverter.XmlAdapter`, `LocalDateTimeConverter.XmlAdapter`, `LocaleConverter.XmlAdapter`, `PathConverter.XmlAdapter`, `PatternConverter.XmlAdapter`, `ZonedDateTimeConverter.XmlAdapter`, `ZoneIdConverter.XmlAdapter`

public class GenericXmlAdapter<T> extends jakarta.xml.bind.annotation.adapters.XmlAdapter<String,T>

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GenericXmlAdapter(Class<T> type)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `marshal(T obj)`
  `T`
  `unmarshal(String value)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### GenericXmlAdapter

    public GenericXmlAdapter(Class<T> type)

- ## Method Details

  - ### marshal

    public String marshal(T obj) throws Exception
    Specified by:
      `marshal` in class `jakarta.xml.bind.annotation.adapters.XmlAdapter<String,T>`
    Throws:
      `Exception`

  - ### unmarshal

    public T unmarshal(String value) throws Exception
    Specified by:
      `unmarshal` in class `jakarta.xml.bind.annotation.adapters.XmlAdapter<String,T>`
    Throws:
      `Exception`