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.12.07 at 03:06:36 AM 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 * <p>Java class for Multiplicity.
019 *
020 * <p>The following schema fragment specifies the expected content contained within this class.
021 * <p>
022 * <pre>
023 * <simpleType name="Multiplicity">
024 * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
025 * <enumeration value="One"/>
026 * <enumeration value="Many"/>
027 * </restriction>
028 * </simpleType>
029 * </pre>
030 *
031 */
032 @XmlType(name = "Multiplicity")
033 @XmlEnum
034 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
035 public enum Multiplicity {
036
037
038 /**
039 * A multiplicity equal to {@code ONE} specifies that no more than one implementation of the specification is allowed to exist among a set of modules (including none).
040 *
041 */
042 @XmlEnumValue("One")
043 ONE("One"),
044
045 /**
046 * A multiplicity equal to {@code MANY} specifies that many implementations of the specification are allowed to exist among a set of modules (including none).
047 *
048 */
049 @XmlEnumValue("Many")
050 MANY("Many");
051 private final String value;
052
053 Multiplicity(String v) {
054 value = v;
055 }
056
057 public String value() {
058 return value;
059 }
060
061 public static Multiplicity fromValue(String v) {
062 for (Multiplicity c: Multiplicity.values()) {
063 if (c.value.equals(v)) {
064 return c;
065 }
066 }
067 throw new IllegalArgumentException(v);
068 }
069
070 }