// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v@@BUILD_VERSION@@ // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2005.08.04 at 08:43:54 AM PDT // package test.tsenum.memberName; import javax.xml.bind.annotation.AccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** *

Java class for root element declaration. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <element name="root">
 *   <complexType>
 *     <complexContent>
 *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *         <attribute name="test">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}int">
 *               <enumeration value="1"/>
 *               <enumeration value="2"/>
 *               <enumeration value="3"/>
 *             </restriction>
 *           </simpleType>
 *         </attribute>
 *       </restriction>
 *     </complexContent>
 *   </complexType>
 * </element>
 * 
* * */ @XmlAccessorType(AccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "root") public class Root { @XmlAttribute protected test.tsenum.memberName.Root.Medal test; /** * Gets the value of the test property. * * @return * possible object is * {@link test.tsenum.memberName.Root.Medal } * */ public test.tsenum.memberName.Root.Medal getTest() { return test; } /** * Sets the value of the test property. * * @param value * allowed object is * {@link test.tsenum.memberName.Root.Medal } * */ public void setTest(test.tsenum.memberName.Root.Medal value) { this.test = value; } /** * constants of medal colors * *

Java class for null. * *

The following schema fragment specifies the expected content contained within this class. *

*

     * <simpleType>
     *   <restriction base="{http://www.w3.org/2001/XMLSchema}int">
     *     <enumeration value="1"/>
     *     <enumeration value="2"/>
     *     <enumeration value="3"/>
     *   </restriction>
     * </simpleType>
     * 
* */ @XmlEnum(Integer.class) public static enum Medal { @XmlEnumValue("3") Bronze(3), @XmlEnumValue("1") Gold(1), @XmlEnumValue("2") Silver(2); private final int value; Medal(int v) { value = v; } public int value() { return value; } public test.tsenum.memberName.Root.Medal fromValue(int v) { for (test.tsenum.memberName.Root.Medal c: test.tsenum.memberName.Root.Medal.values()) { if (c.value == v) { return c; } } throw new IllegalArgumentException(String.valueOf(v)); } } }