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.PeriodFormatterDEFAULT_PERIOD_FORMATTERConstantDEFAULT_PERIOD_FORMATTER
-
Constructor Summary
Constructors Constructor Description StringIntervalAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringmarshal(org.joda.time.Duration v)org.joda.time.Durationunmarshal(String v)
-
-
-
Method Detail
-
marshal
public String marshal(org.joda.time.Duration v)
- Specified by:
marshalin classXmlAdapter<String,org.joda.time.Duration>
-
unmarshal
public org.joda.time.Duration unmarshal(String v)
- Specified by:
unmarshalin classXmlAdapter<String,org.joda.time.Duration>
-
-