001 /*
002 * XML Type: control-flagType
003 * Namespace: http://geronimo.apache.org/xml/ns/loginconfig-2.0
004 * Java type: org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.xbeans.geronimo.loginconfig;
009
010
011 /**
012 * An XML control-flagType(@http://geronimo.apache.org/xml/ns/loginconfig-2.0).
013 *
014 * This is an atomic type that is a restriction of org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType.
015 */
016 public interface GerControlFlagType extends org.apache.xmlbeans.XmlString
017 {
018 public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
019 org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(GerControlFlagType.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s8F58AF319EEC34E22F0806A022BFB952").resolveHandle("controlflagtypebce6type");
020
021 org.apache.xmlbeans.StringEnumAbstractBase enumValue();
022 void set(org.apache.xmlbeans.StringEnumAbstractBase e);
023
024 static final Enum REQUIRED = Enum.forString("REQUIRED");
025 static final Enum REQUISITE = Enum.forString("REQUISITE");
026 static final Enum SUFFICIENT = Enum.forString("SUFFICIENT");
027 static final Enum OPTIONAL = Enum.forString("OPTIONAL");
028
029 static final int INT_REQUIRED = Enum.INT_REQUIRED;
030 static final int INT_REQUISITE = Enum.INT_REQUISITE;
031 static final int INT_SUFFICIENT = Enum.INT_SUFFICIENT;
032 static final int INT_OPTIONAL = Enum.INT_OPTIONAL;
033
034 /**
035 * Enumeration value class for org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType.
036 * These enum values can be used as follows:
037 * <pre>
038 * enum.toString(); // returns the string value of the enum
039 * enum.intValue(); // returns an int value, useful for switches
040 * // e.g., case Enum.INT_REQUIRED
041 * Enum.forString(s); // returns the enum value for a string
042 * Enum.forInt(i); // returns the enum value for an int
043 * </pre>
044 * Enumeration objects are immutable singleton objects that
045 * can be compared using == object equality. They have no
046 * public constructor. See the constants defined within this
047 * class for all the valid values.
048 */
049 static final class Enum extends org.apache.xmlbeans.StringEnumAbstractBase
050 {
051 /**
052 * Returns the enum value for a string, or null if none.
053 */
054 public static Enum forString(java.lang.String s)
055 { return (Enum)table.forString(s); }
056 /**
057 * Returns the enum value corresponding to an int, or null if none.
058 */
059 public static Enum forInt(int i)
060 { return (Enum)table.forInt(i); }
061
062 private Enum(java.lang.String s, int i)
063 { super(s, i); }
064
065 static final int INT_REQUIRED = 1;
066 static final int INT_REQUISITE = 2;
067 static final int INT_SUFFICIENT = 3;
068 static final int INT_OPTIONAL = 4;
069
070 public static final org.apache.xmlbeans.StringEnumAbstractBase.Table table =
071 new org.apache.xmlbeans.StringEnumAbstractBase.Table
072 (
073 new Enum[]
074 {
075 new Enum("REQUIRED", INT_REQUIRED),
076 new Enum("REQUISITE", INT_REQUISITE),
077 new Enum("SUFFICIENT", INT_SUFFICIENT),
078 new Enum("OPTIONAL", INT_OPTIONAL),
079 }
080 );
081 private static final long serialVersionUID = 1L;
082 private java.lang.Object readResolve() { return forInt(intValue()); }
083 }
084
085 /**
086 * A factory class with static methods for creating instances
087 * of this type.
088 */
089
090 public static final class Factory
091 {
092 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType newValue(java.lang.Object obj) {
093 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) type.newValue( obj ); }
094
095 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType newInstance() {
096 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
097
098 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType newInstance(org.apache.xmlbeans.XmlOptions options) {
099 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
100
101 /** @param xmlAsString the string value to parse */
102 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
103 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
104
105 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
106 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
107
108 /** @param file the file from which to load an xml document */
109 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
110 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
111
112 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
113 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
114
115 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
116 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
117
118 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
119 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
120
121 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
122 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
123
124 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
125 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
126
127 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
128 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
129
130 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
131 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
132
133 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
134 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
135
136 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
137 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
138
139 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
140 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
141
142 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
143 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
144
145 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
146 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
147 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
148
149 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
150 public static org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
151 return (org.apache.geronimo.xbeans.geronimo.loginconfig.GerControlFlagType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
152
153 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
154 public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
155 return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
156
157 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
158 public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
159 return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
160
161 private Factory() { } // No instance of this class allowed
162 }
163 }