Package nl.vpro.util

Interface XmlValued


public interface XmlValued
An enum can be made to extend this, which indicates that an extra method will be present getXmlValue() which will be the XmlEnumValue of the enum value.

Normally this would be Enum.name()}, but sometimes this is overridden, via the said annotation, and you need programmatic access to it.

Since:
4.3
Author:
Michiel Meeuwissen
  • Method Details

    • getXmlValue

      default String getXmlValue()
    • valueOfXml

      static <E extends Enum<E> & XmlValued> E valueOfXml(E[] values, String value)
      Since:
      5.20.2
    • valueOfXml

      static <E extends Enum<E> & XmlValued> E valueOfXml(XmlValued[] values, String value, boolean fallBackToName)
      Since:
      5.20.2