Class StringIntervalAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<String,org.joda.time.Duration>
-
- org.opennms.netmgt.provision.persist.StringIntervalAdapter
-
public class StringIntervalAdapter extends XmlAdapter<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 String
marshal(org.joda.time.Duration v)
org.joda.time.Duration
unmarshal(String v)
-
-
-
Method Detail
-
marshal
public String marshal(org.joda.time.Duration v)
- Specified by:
marshal
in classXmlAdapter<String,org.joda.time.Duration>
-
unmarshal
public org.joda.time.Duration unmarshal(String v)
- Specified by:
unmarshal
in classXmlAdapter<String,org.joda.time.Duration>
-
-