001 /*
002 * XML Type: moduleType
003 * Namespace: http://geronimo.apache.org/xml/ns/deployment-1.2
004 * Java type: org.apache.geronimo.deployment.xbeans.ModuleType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.deployment.xbeans;
009
010
011 /**
012 * An XML moduleType(@http://geronimo.apache.org/xml/ns/deployment-1.2).
013 *
014 * This is a complex type.
015 */
016 public interface ModuleType extends org.apache.xmlbeans.XmlObject
017 {
018 public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
019 org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(ModuleType.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s428F6F412C3D7FF587AC6A8696D0654D").resolveHandle("moduletype6a89type");
020
021 /**
022 * Gets the "environment" element
023 */
024 org.apache.geronimo.deployment.xbeans.EnvironmentType getEnvironment();
025
026 /**
027 * Sets the "environment" element
028 */
029 void setEnvironment(org.apache.geronimo.deployment.xbeans.EnvironmentType environment);
030
031 /**
032 * Appends and returns a new empty "environment" element
033 */
034 org.apache.geronimo.deployment.xbeans.EnvironmentType addNewEnvironment();
035
036 /**
037 * Gets array of all "service" elements
038 */
039 org.apache.geronimo.deployment.xbeans.AbstractServiceType[] getServiceArray();
040
041 /**
042 * Gets ith "service" element
043 */
044 org.apache.geronimo.deployment.xbeans.AbstractServiceType getServiceArray(int i);
045
046 /**
047 * Returns number of "service" element
048 */
049 int sizeOfServiceArray();
050
051 /**
052 * Sets array of all "service" element
053 */
054 void setServiceArray(org.apache.geronimo.deployment.xbeans.AbstractServiceType[] serviceArray);
055
056 /**
057 * Sets ith "service" element
058 */
059 void setServiceArray(int i, org.apache.geronimo.deployment.xbeans.AbstractServiceType service);
060
061 /**
062 * Inserts and returns a new empty value (as xml) as the ith "service" element
063 */
064 org.apache.geronimo.deployment.xbeans.AbstractServiceType insertNewService(int i);
065
066 /**
067 * Appends and returns a new empty value (as xml) as the last "service" element
068 */
069 org.apache.geronimo.deployment.xbeans.AbstractServiceType addNewService();
070
071 /**
072 * Removes the ith "service" element
073 */
074 void removeService(int i);
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.ModuleType newInstance() {
084 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
085
086 public static org.apache.geronimo.deployment.xbeans.ModuleType newInstance(org.apache.xmlbeans.XmlOptions options) {
087 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
088
089 /** @param xmlAsString the string value to parse */
090 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
091 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
092
093 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
094 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
095
096 /** @param file the file from which to load an xml document */
097 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
098 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
099
100 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
101 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
102
103 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
104 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
105
106 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
107 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
108
109 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
110 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
111
112 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
113 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
114
115 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
116 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
117
118 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
119 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
120
121 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
122 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
123
124 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
125 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
126
127 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
128 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
129
130 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
131 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
132
133 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
134 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
135 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
136
137 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
138 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
139 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
140
141 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
142 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 {
143 return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
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, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
147 return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
148
149 private Factory() { } // No instance of this class allowed
150 }
151 }