Class DecimalAdapter

java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<String,org.faktorips.values.Decimal>
org.faktorips.runtime.xml.jakarta.DecimalAdapter
All Implemented Interfaces:
org.faktorips.runtime.xml.IIpsDecimalAdapter, org.faktorips.runtime.xml.IIpsXmlAdapter<String,org.faktorips.values.Decimal>

public class DecimalAdapter extends jakarta.xml.bind.annotation.adapters.XmlAdapter<String,org.faktorips.values.Decimal> implements org.faktorips.runtime.xml.IIpsDecimalAdapter
XmlAdapter for Decimal. 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.DecimalAdapter.class),
     ...
 })
 package com.acme.foo;
 
 
  • Constructor Details

    • DecimalAdapter

      public DecimalAdapter()
  • Method Details

    • unmarshal

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

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