Klasse GenericEnumAdapter<T extends Enum<T>>

java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<String,T>
org.emau.icmvc.ttp.epix.common.model.enums.GenericEnumAdapter<T>
Typparameter:
T -
Bekannte direkte Unterklassen:
BlockingModeAdapter, ContactHistoryEventAdapter, FieldNameAdapter, GenderAdapter, IdentifierDeletionResultAdapter, IdentifierHistoryEventAdapter, IdentityFieldAdapter, IdentityHistoryEventAdapter, IdentityHistoryFieldAdapter, MatchingModeAdapter, MatchStatusAdapter, MatchTypeForSearchAdapter, PersistModeAdapter, PersonFieldAdapter, PersonHistoryEventAdapter, PossibleMatchPriorityAdapter, PossibleMatchSolutionAdapter, RequestSaveActionAdapter, VitalStatusAdapter, VitalStatusTypeAdapter

public abstract class GenericEnumAdapter<T extends Enum<T>> extends jakarta.xml.bind.annotation.adapters.XmlAdapter<String,T>
see https://stackoverflow.com/questions/12147306/handling-invalid-enum-values-while-doing-jaxb-unmarshalling
and because of annotations can't be generic an extra class is needed for every enum
Autor:
geidell
  • Konstruktordetails

    • GenericEnumAdapter

      public GenericEnumAdapter()
  • Methodendetails

    • unmarshal

      public T unmarshal(String s) throws Exception
      Angegeben von:
      unmarshal in Klasse jakarta.xml.bind.annotation.adapters.XmlAdapter<String,T extends Enum<T>>
      Löst aus:
      Exception
    • marshal

      public String marshal(T t) throws Exception
      Angegeben von:
      marshal in Klasse jakarta.xml.bind.annotation.adapters.XmlAdapter<String,T extends Enum<T>>
      Löst aus:
      Exception