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 Multiplicity. 014 * <p>The following schema fragment specifies the expected content contained within this java content object. 015 * <p> 016 * <pre> 017 * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> 018 * <enumeration value="one"/> 019 * <enumeration value="many"/> 020 * </restriction> 021 * </pre> 022 * 023 */ 024public class Multiplicity { 025 026 private final static java.util.Map valueMap = new java.util.HashMap(); 027 public final static java.lang.String _ONE = com.sun.xml.bind.WhiteSpaceProcessor.collapse(com.sun.xml.bind.DatatypeConverterImpl.installHook("one")); 028 public final static org.jdtaus.mojo.resource.model.Multiplicity ONE = new org.jdtaus.mojo.resource.model.Multiplicity(_ONE); 029 public final static java.lang.String _MANY = com.sun.xml.bind.WhiteSpaceProcessor.collapse(com.sun.xml.bind.DatatypeConverterImpl.installHook("many")); 030 public final static org.jdtaus.mojo.resource.model.Multiplicity MANY = new org.jdtaus.mojo.resource.model.Multiplicity(_MANY); 031 private final java.lang.String lexicalValue; 032 private final java.lang.String value; 033 034 protected Multiplicity(java.lang.String v) { 035 value = v; 036 lexicalValue = v; 037 valueMap.put(v, this); 038 } 039 040 public java.lang.String toString() { 041 return lexicalValue; 042 } 043 044 public java.lang.String getValue() { 045 return value; 046 } 047 048 public final int hashCode() { 049 return super.hashCode(); 050 } 051 052 public final boolean equals(java.lang.Object o) { 053 return super.equals(o); 054 } 055 056 public static org.jdtaus.mojo.resource.model.Multiplicity fromValue(java.lang.String value) { 057 org.jdtaus.mojo.resource.model.Multiplicity t = ((org.jdtaus.mojo.resource.model.Multiplicity) valueMap.get(value)); 058 if (t == null) { 059 throw new java.lang.IllegalArgumentException(); 060 } else { 061 return t; 062 } 063 } 064 065 public static org.jdtaus.mojo.resource.model.Multiplicity fromString(java.lang.String str) { 066 return fromValue(com.sun.xml.bind.WhiteSpaceProcessor.collapse(str)); 067 } 068 069}