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 Summary
Modifier and TypeMethodDescriptiondefault String
valueOfXml
(E[] values, String value) valueOfXml
(XmlValued[] values, String value, boolean fallBackToName)