Class MonthAdapter

java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<Integer,Month>
org.faktorips.runtime.xml.javax.MonthAdapter
All Implemented Interfaces:
org.faktorips.runtime.xml.IIpsMonthAdapter, org.faktorips.runtime.xml.IIpsXmlAdapter<Integer,Month>

public class MonthAdapter extends XmlAdapter<Integer,Month> implements org.faktorips.runtime.xml.IIpsMonthAdapter
XmlAdapter for Month. The adapter can be used for individual elements/attributes or registered in package-info.java:
 
 @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapters({
     @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(value = org.faktorips.runtime.jaxb.MonthAdapter.class),
     ...
 })
 package com.acme.foo;
 
 
  • Constructor Details

    • MonthAdapter

      public MonthAdapter()
  • Method Details

    • unmarshal

      public Month unmarshal(Integer i)
      Specified by:
      unmarshal in interface org.faktorips.runtime.xml.IIpsMonthAdapter
      Specified by:
      unmarshal in interface org.faktorips.runtime.xml.IIpsXmlAdapter<Integer,Month>
      Specified by:
      unmarshal in class XmlAdapter<Integer,Month>
    • marshal

      public Integer marshal(Month m)
      Specified by:
      marshal in interface org.faktorips.runtime.xml.IIpsMonthAdapter
      Specified by:
      marshal in interface org.faktorips.runtime.xml.IIpsXmlAdapter<Integer,Month>
      Specified by:
      marshal in class XmlAdapter<Integer,Month>