1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
|
/*
* This class was automatically generated with
* <a href="http://www.castor.org">Castor 1.3.1</a>, using an XML
* Schema.
* $Id$
*/
package org.exolab.castor.mapping.xml.types;
/**
* Enumeration BindXmlNodeType.
*
* @version $Revision$ $Date$
*/
public enum BindXmlNodeType {
//------------------/
//- Enum Constants -/
//------------------/
/**
* Constant ATTRIBUTE
*/
ATTRIBUTE("attribute"),
/**
* Constant ELEMENT
*/
ELEMENT("element"),
/**
* Constant NAMESPACE
*/
NAMESPACE("namespace"),
/**
* Constant TEXT
*/
TEXT("text");
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field value.
*/
private final java.lang.String value;
/**
* Field enumConstants.
*/
private static final java.util.Map<java.lang.String, BindXmlNodeType> enumConstants = new java.util.HashMap<java.lang.String, BindXmlNodeType>();
static {
for (BindXmlNodeType c: BindXmlNodeType.values()) {
BindXmlNodeType.enumConstants.put(c.value, c);
}
};
//----------------/
//- Constructors -/
//----------------/
private BindXmlNodeType(final java.lang.String value) {
this.value = value;
}
//-----------/
//- Methods -/
//-----------/
/**
* Method fromValue.
*
* @param value
* @return the constant for this value
*/
public static org.exolab.castor.mapping.xml.types.BindXmlNodeType fromValue(
final java.lang.String value) {
BindXmlNodeType c = BindXmlNodeType.enumConstants.get(value);
if (c != null) {
return c;
}
throw new IllegalArgumentException(value);
}
/**
*
*
* @param value
*/
public void setValue(
final java.lang.String value) {
}
/**
* Method toString.
*
* @return the value of this constant
*/
public java.lang.String toString(
) {
return this.value;
}
/**
* Method value.
*
* @return the value of this constant
*/
public java.lang.String value(
) {
return this.value;
}
}
|