Package org.opennms.netmgt.xml.bind
Class EnumToStringXmlAdapter<T extends java.lang.Enum<T>>
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,T>
-
- org.opennms.netmgt.xml.bind.EnumToStringXmlAdapter<T>
-
- Direct Known Subclasses:
NodeLabelSourceXmlAdapter
,NodeTypeXmlAdapter
public class EnumToStringXmlAdapter<T extends java.lang.Enum<T>> extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EnumToStringXmlAdapter(java.lang.Class<T> clazz, T defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
marshal(T nodeType)
T
unmarshal(java.lang.String status)
-
-
-
Method Detail
-
marshal
public java.lang.String marshal(T nodeType) throws java.lang.Exception
-
-