Class StringIntervalAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,org.joda.time.Duration>
-
- org.opennms.netmgt.provision.persist.StringIntervalAdapter
-
public class StringIntervalAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,org.joda.time.Duration>
-
-
Field Summary
Fields Modifier and Type Field Description static org.joda.time.format.PeriodFormatter
DEFAULT_PERIOD_FORMATTER
ConstantDEFAULT_PERIOD_FORMATTER
-
Constructor Summary
Constructors Constructor Description StringIntervalAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
marshal(org.joda.time.Duration v)
org.joda.time.Duration
unmarshal(java.lang.String v)
-
-
-
Method Detail
-
marshal
public java.lang.String marshal(org.joda.time.Duration v)
- Specified by:
marshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,org.joda.time.Duration>
-
unmarshal
public org.joda.time.Duration unmarshal(java.lang.String v)
- Specified by:
unmarshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,org.joda.time.Duration>
-
-