Class LocalDateTimeAdapter

java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<String,LocalDateTime>
org.faktorips.runtime.xml.jakarta.LocalDateTimeAdapter
All Implemented Interfaces:
org.faktorips.runtime.xml.IIpsLocalDateTimeAdapter, org.faktorips.runtime.xml.IIpsXmlAdapter<String,LocalDateTime>

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

    • LocalDateTimeAdapter

      public LocalDateTimeAdapter()
  • Method Details

    • unmarshal

      public LocalDateTime unmarshal(String v)
      Specified by:
      unmarshal in interface org.faktorips.runtime.xml.IIpsLocalDateTimeAdapter
      Specified by:
      unmarshal in interface org.faktorips.runtime.xml.IIpsXmlAdapter<String,LocalDateTime>
      Specified by:
      unmarshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,LocalDateTime>
    • marshal

      public String marshal(LocalDateTime v)
      Specified by:
      marshal in interface org.faktorips.runtime.xml.IIpsLocalDateTimeAdapter
      Specified by:
      marshal in interface org.faktorips.runtime.xml.IIpsXmlAdapter<String,LocalDateTime>
      Specified by:
      marshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,LocalDateTime>