//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vBeta 
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2004.05.26 at 03:38:22 CEST 
//


package phex.xml;


/**
 * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *   &lt;enumeration value="any"/>
 *   &lt;enumeration value="audio"/>
 *   &lt;enumeration value="video"/>
 *   &lt;enumeration value="program"/>
 * &lt;/restriction>
 * 
 * 
 */
public class XJBMediaType {

    public final static phex.xml.XJBMediaType ANY = new phex.xml.XJBMediaType("any");
    private final static Object $$$_ANY = "any";
    public final static phex.xml.XJBMediaType AUDIO = new phex.xml.XJBMediaType("audio");
    private final static Object $$$_AUDIO = "audio";
    public final static phex.xml.XJBMediaType VIDEO = new phex.xml.XJBMediaType("video");
    private final static Object $$$_VIDEO = "video";
    public final static phex.xml.XJBMediaType PROGRAM = new phex.xml.XJBMediaType("program");
    private final static Object $$$_PROGRAM = "program";
    private final String value;

    private XJBMediaType(String v) {
        value = v;
    }

    public String toString() {
        return value;
    }

    public final int hashCode() {
        return super.hashCode();
    }

    public final boolean equals(Object o) {
        return super.equals(o);
    }

    public static phex.xml.XJBMediaType parse(String str) {
        if ($$$_ANY.equals(str)) {
            return ANY;
        }
        if ($$$_AUDIO.equals(str)) {
            return AUDIO;
        }
        if ($$$_VIDEO.equals(str)) {
            return VIDEO;
        }
        if ($$$_PROGRAM.equals(str)) {
            return PROGRAM;
        }
        return null;
    }

}
