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