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