Package org.opennms.core.xml
Class AbstractOptionalAdapter<T>
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Optional<T>>
-
- org.opennms.core.xml.AbstractOptionalAdapter<T>
-
- Direct Known Subclasses:
OptionalDoubleAdapter
,OptionalIntegerAdapter
,OptionalLongAdapter
,OptionalStringAdapter
public abstract class AbstractOptionalAdapter<T> extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Optional<T>>
-
-
Constructor Summary
Constructors Constructor Description AbstractOptionalAdapter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract T
fromString(java.lang.String v)
java.lang.String
marshal(java.util.Optional<T> v)
java.util.Optional<T>
unmarshal(java.lang.String v)
-
-
-
Method Detail
-
fromString
public abstract T fromString(java.lang.String v)
-
unmarshal
public java.util.Optional<T> unmarshal(java.lang.String v) throws java.lang.Exception
- Specified by:
unmarshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Optional<T>>
- Throws:
java.lang.Exception
-
-