Package google.registry.model.adapters
Class EnumToAttributeAdapter<E extends Enum<E> & EnumToAttributeAdapter.EppEnum>
java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<google.registry.model.adapters.EnumToAttributeAdapter.EnumShim,E>
google.registry.model.adapters.EnumToAttributeAdapter<E>
- Type Parameters:
E
- the enum type
- Direct Known Subclasses:
StatusValueAdapter
public class EnumToAttributeAdapter<E extends Enum<E> & EnumToAttributeAdapter.EppEnum>
extends jakarta.xml.bind.annotation.adapters.XmlAdapter<google.registry.model.adapters.EnumToAttributeAdapter.EnumShim,E>
Used by JAXB to convert enums to the peculiar EPP format that puts the value in an attribute.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Interface for epp enums that can be transformed with this adapter. -
Constructor Summary
-
Method Summary
-
Constructor Details
-
EnumToAttributeAdapter
public EnumToAttributeAdapter()
-
-
Method Details
-
unmarshal
- Specified by:
unmarshal
in classjakarta.xml.bind.annotation.adapters.XmlAdapter<google.registry.model.adapters.EnumToAttributeAdapter.EnumShim,
E extends Enum<E> & EnumToAttributeAdapter.EppEnum>
-
marshal
- Specified by:
marshal
in classjakarta.xml.bind.annotation.adapters.XmlAdapter<google.registry.model.adapters.EnumToAttributeAdapter.EnumShim,
E extends Enum<E> & EnumToAttributeAdapter.EppEnum>
-