001//
002// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.6-01/24/2006 06:15 PM(kohsuke)-fcs 
003// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
004// Any modifications to this file will be lost upon recompilation of the source schema. 
005// Generated on: 2012.10.03 at 04:27:47 AM CEST 
006//
007
008
009package org.jdtaus.mojo.resource.model;
010
011
012/**
013 * Java content class for Scope.
014 *  <p>The following schema fragment specifies the expected content contained within this java content object.
015 * <p>
016 * <pre>
017 * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
018 *   &lt;enumeration value="multiton"/>
019 *   &lt;enumeration value="context"/>
020 *   &lt;enumeration value="singleton"/>
021 * &lt;/restriction>
022 * </pre>
023 * 
024 */
025public class Scope {
026
027    private final static java.util.Map valueMap = new java.util.HashMap();
028    public final static java.lang.String _MULTITON = com.sun.xml.bind.WhiteSpaceProcessor.collapse(com.sun.xml.bind.DatatypeConverterImpl.installHook("multiton"));
029    public final static org.jdtaus.mojo.resource.model.Scope MULTITON = new org.jdtaus.mojo.resource.model.Scope(_MULTITON);
030    public final static java.lang.String _CONTEXT = com.sun.xml.bind.WhiteSpaceProcessor.collapse(com.sun.xml.bind.DatatypeConverterImpl.installHook("context"));
031    public final static org.jdtaus.mojo.resource.model.Scope CONTEXT = new org.jdtaus.mojo.resource.model.Scope(_CONTEXT);
032    public final static java.lang.String _SINGLETON = com.sun.xml.bind.WhiteSpaceProcessor.collapse(com.sun.xml.bind.DatatypeConverterImpl.installHook("singleton"));
033    public final static org.jdtaus.mojo.resource.model.Scope SINGLETON = new org.jdtaus.mojo.resource.model.Scope(_SINGLETON);
034    private final java.lang.String lexicalValue;
035    private final java.lang.String value;
036
037    protected Scope(java.lang.String v) {
038        value = v;
039        lexicalValue = v;
040        valueMap.put(v, this);
041    }
042
043    public java.lang.String toString() {
044        return lexicalValue;
045    }
046
047    public java.lang.String getValue() {
048        return value;
049    }
050
051    public final int hashCode() {
052        return super.hashCode();
053    }
054
055    public final boolean equals(java.lang.Object o) {
056        return super.equals(o);
057    }
058
059    public static org.jdtaus.mojo.resource.model.Scope fromValue(java.lang.String value) {
060        org.jdtaus.mojo.resource.model.Scope t = ((org.jdtaus.mojo.resource.model.Scope) valueMap.get(value));
061        if (t == null) {
062            throw new java.lang.IllegalArgumentException();
063        } else {
064            return t;
065        }
066    }
067
068    public static org.jdtaus.mojo.resource.model.Scope fromString(java.lang.String str) {
069        return fromValue(com.sun.xml.bind.WhiteSpaceProcessor.collapse(str));
070    }
071
072}