nl.vpro.domain.media.bind.RegionAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of media-domain Show documentation
Show all versions of media-domain Show documentation
The basic domain classes for 'media', the core of POMS. Also, the 'update' XML bindings for it.
It also contains some closely related domain classes like the enum to contain NICAM kijkwijzer settings.
package nl.vpro.domain.media.bind;
import nl.vpro.domain.media.Region;
import nl.vpro.xml.bind.EnumAdapter;
/**
* Nice idea, but we don't use it for now. Since it ****-up XSD generation.
* @author Michiel Meeuwissen
* @since 5.8
* @Beta
*/
public class RegionAdapter extends EnumAdapter {
public RegionAdapter() {
super(Region.class);
}
@Override
protected Region valueOf(String s) {
return Region.valueOfOrNull(s);
}
}