java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<
Integer ,
org.fuin.ddd4j.core.AggregateVersion>
org.fuin.ddd4j.jaxb.AggregateVersionXmlAdapter
@ThreadSafe
public final class AggregateVersionXmlAdapter
extends jakarta.xml.bind.annotation.adapters.XmlAdapter<Integer ,org.fuin.ddd4j.core.AggregateVersion>
Converts an aggregate version into an integer and back.
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
marshal (org.fuin.ddd4j.core.AggregateVersion version)
org.fuin.ddd4j.core.AggregateVersion
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Details
AggregateVersionXmlAdapter
public AggregateVersionXmlAdapter ()
Method Details
unmarshal
public org.fuin.ddd4j.core.AggregateVersion unmarshal (Integer value)
throws Exception
Specified by:
unmarshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<Integer ,org.fuin.ddd4j.core.AggregateVersion>
Throws:
Exception
marshal
public Integer marshal (org.fuin.ddd4j.core.AggregateVersion version)
throws Exception
Specified by:
marshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<Integer ,org.fuin.ddd4j.core.AggregateVersion>
Throws:
Exception