Package org.faktorips.runtime.jaxb
Class MonthAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Integer,java.time.Month>
-
- org.faktorips.runtime.jaxb.MonthAdapter
-
public class MonthAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Integer,java.time.Month>XmlAdapterforMonth. The adapter can be used for individual elements/attributes or registered inpackage-info.java:@javax.xml.bind.annotation.adapters.XmlJavaTypeAdapters({ @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(value = de.faktorzehn.commons.jaxb.MonthAdapter.class), ... }) package com.acme.foo;
-
-
Constructor Summary
Constructors Constructor Description MonthAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integermarshal(java.time.Month m)java.time.Monthunmarshal(java.lang.Integer i)
-
-
-
Method Detail
-
unmarshal
public java.time.Month unmarshal(java.lang.Integer i)
- Specified by:
unmarshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Integer,java.time.Month>
-
marshal
public java.lang.Integer marshal(java.time.Month m)
- Specified by:
marshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Integer,java.time.Month>
-
-