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)schemaorg_apache_xmlbeans.system.s596967AB426BF091FD59326316BABB46.TypeSystemHolder.typeSystem.resolveHandle("moduletype6a89type");
019
020 /**
021 * Gets the "environment" element
022 */
023 org.apache.geronimo.deployment.xbeans.EnvironmentType getEnvironment();
024
025 /**
026 * Sets the "environment" element
027 */
028 void setEnvironment(org.apache.geronimo.deployment.xbeans.EnvironmentType environment);
029
030 /**
031 * Appends and returns a new empty "environment" element
032 */
033 org.apache.geronimo.deployment.xbeans.EnvironmentType addNewEnvironment();
034
035 /**
036 * Gets array of all "service" elements
037 */
038 org.apache.geronimo.deployment.xbeans.AbstractServiceType[] getServiceArray();
039
040 /**
041 * Gets ith "service" element
042 */
043 org.apache.geronimo.deployment.xbeans.AbstractServiceType getServiceArray(int i);
044
045 /**
046 * Returns number of "service" element
047 */
048 int sizeOfServiceArray();
049
050 /**
051 * Sets array of all "service" element
052 */
053 void setServiceArray(org.apache.geronimo.deployment.xbeans.AbstractServiceType[] serviceArray);
054
055 /**
056 * Sets ith "service" element
057 */
058 void setServiceArray(int i, org.apache.geronimo.deployment.xbeans.AbstractServiceType service);
059
060 /**
061 * Inserts and returns a new empty value (as xml) as the ith "service" element
062 */
063 org.apache.geronimo.deployment.xbeans.AbstractServiceType insertNewService(int i);
064
065 /**
066 * Appends and returns a new empty value (as xml) as the last "service" element
067 */
068 org.apache.geronimo.deployment.xbeans.AbstractServiceType addNewService();
069
070 /**
071 * Removes the ith "service" element
072 */
073 void removeService(int i);
074
075 /**
076 * A factory class with static methods for creating instances
077 * of this type.
078 */
079
080 public static final class Factory
081 {
082 public static org.apache.geronimo.deployment.xbeans.ModuleType newInstance() {
083 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
084
085 public static org.apache.geronimo.deployment.xbeans.ModuleType newInstance(org.apache.xmlbeans.XmlOptions options) {
086 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
087
088 /** @param xmlAsString the string value to parse */
089 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
090 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
091
092 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
093 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
094
095 /** @param file the file from which to load an xml document */
096 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
097 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
098
099 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 {
100 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
101
102 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
103 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
104
105 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 {
106 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
107
108 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
109 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
110
111 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 {
112 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
113
114 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
115 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
116
117 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 {
118 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
119
120 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
121 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
122
123 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
124 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
125
126 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
127 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
128
129 public static org.apache.geronimo.deployment.xbeans.ModuleType parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
130 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
131
132 /** @deprecated {@link XMLInputStream} */
133 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 {
134 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
135
136 /** @deprecated {@link XMLInputStream} */
137 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 {
138 return (org.apache.geronimo.deployment.xbeans.ModuleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
139
140 /** @deprecated {@link XMLInputStream} */
141 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 {
142 return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
143
144 /** @deprecated {@link XMLInputStream} */
145 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 {
146 return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
147
148 private Factory() { } // No instance of this class allowed
149 }
150 }