001    //
002    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 
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: 2009.09.21 at 10:35:38 PM UTC 
006    //
007    
008    
009    package org.jomc.model;
010    
011    import javax.annotation.Generated;
012    import javax.xml.bind.annotation.XmlEnum;
013    import javax.xml.bind.annotation.XmlEnumValue;
014    import javax.xml.bind.annotation.XmlType;
015    
016    
017    /**
018     * Enumeration of multiplicities.
019     * 
020     * <p>Java class for Multiplicity.
021     * 
022     * <p>The following schema fragment specifies the expected content contained within this class.
023     * <p>
024     * <pre>
025     * &lt;simpleType name="Multiplicity">
026     *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
027     *     &lt;enumeration value="One"/>
028     *     &lt;enumeration value="Many"/>
029     *   &lt;/restriction>
030     * &lt;/simpleType>
031     * </pre>
032     * 
033     */
034    @XmlType(name = "Multiplicity")
035    @XmlEnum
036    @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-09-21T10:35:38+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
037    public enum Multiplicity {
038    
039    
040        /**
041         * 
042         * A multiplicity equal to {@code ONE} specifies that no more than one
043         * implementation of the specification is allowed to exist among a set of modules
044         * (including none).
045         * 
046         */
047        @XmlEnumValue("One")
048        ONE("One"),
049    
050        /**
051         * 
052         * A multiplicity equal to {@code MANY} specifies that many implementations of the
053         * specification are allowed to exist among a set of modules (including none).
054         * 
055         */
056        @XmlEnumValue("Many")
057        MANY("Many");
058        private final String value;
059    
060        Multiplicity(String v) {
061            value = v;
062        }
063    
064        public String value() {
065            return value;
066        }
067    
068        public static Multiplicity fromValue(String v) {
069            for (Multiplicity c: Multiplicity.values()) {
070                if (c.value.equals(v)) {
071                    return c;
072                }
073            }
074            throw new IllegalArgumentException(v);
075        }
076    
077    }