Interface IIpsXmlAdapter<ValueType,BoundType>

Type Parameters:
BoundType - the Java type to be mapped
ValueType - the type to be used in the XML
All Known Subinterfaces:
IIpsDecimalAdapter, IIpsLocalDateAdapter, IIpsLocalDateTimeAdapter, IIpsLocalTimeAdapter, IIpsMoneyAdapter, IIpsMonthAdapter, IIpsMonthDayAdapter, IIpsYearAdapter
All Known Implementing Classes:
IpsProductConfigurationXmlAdapter, LocalDateAdapter, LocalDateTimeAdapter, LocalTimeAdapter, MonthAdapter, MonthDayAdapter, ProductConfigurationXmlAdapter

public interface IIpsXmlAdapter<ValueType,BoundType>
Adapts a Java type for XML marshaling.
  • Method Details

    • unmarshal

      BoundType unmarshal(ValueType v) throws Exception
      Convert a value type to a bound type.
      Parameters:
      v - The value to be converted. Can be null.
      Throws:
      Exception - if there's an error during the conversion.
    • marshal

      ValueType marshal(BoundType v) throws Exception
      Convert a bound type to a value type.
      Parameters:
      v - The value to be converted. Can be null.
      Throws:
      Exception - if there's an error during the conversion.