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 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