/*
 * An XML document type.
 * Localname: SubscriptionEnd
 * Namespace: http://schemas.xmlsoap.org/ws/2004/08/eventing
 * Java type: org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument
 *
 * Automatically generated - do not modify.
 */
package org.codehaus.activemq.ws.schema.eventing;


/**
 * A document containing one SubscriptionEnd(@http://schemas.xmlsoap.org/ws/2004/08/eventing) element.
 * <p/>
 * This is a complex type.
 */
public interface SubscriptionEndDocument extends org.apache.xmlbeans.XmlObject {
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) schema.system.s3A9E7247E37A34A5E3891BE64349C3B8.TypeSystemHolder.typeSystem.resolveHandle("subscriptionend0a4bdoctype");

    /**
     * Gets the "SubscriptionEnd" element
     */
    org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument.SubscriptionEnd getSubscriptionEnd();

    /**
     * Sets the "SubscriptionEnd" element
     */
    void setSubscriptionEnd(org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument.SubscriptionEnd subscriptionEnd);

    /**
     * Appends and returns a new empty "SubscriptionEnd" element
     */
    org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument.SubscriptionEnd addNewSubscriptionEnd();

    /**
     * An XML SubscriptionEnd(@http://schemas.xmlsoap.org/ws/2004/08/eventing).
     * <p/>
     * This is a complex type.
     */
    public interface SubscriptionEnd extends org.apache.xmlbeans.XmlObject {
        public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) schema.system.s3A9E7247E37A34A5E3891BE64349C3B8.TypeSystemHolder.typeSystem.resolveHandle("subscriptionend00c1elemtype");

        /**
         * Gets the "SubscriptionManager" element
         */
        org.codehaus.activemq.ws.schema.addressing.EndpointReferenceType getSubscriptionManager();

        /**
         * Sets the "SubscriptionManager" element
         */
        void setSubscriptionManager(org.codehaus.activemq.ws.schema.addressing.EndpointReferenceType subscriptionManager);

        /**
         * Appends and returns a new empty "SubscriptionManager" element
         */
        org.codehaus.activemq.ws.schema.addressing.EndpointReferenceType addNewSubscriptionManager();

        /**
         * Gets the "Status" element
         */
        java.lang.String getStatus();

        /**
         * Gets (as xml) the "Status" element
         */
        org.codehaus.activemq.ws.schema.eventing.OpenSubscriptionEndCodeType xgetStatus();

        /**
         * Sets the "Status" element
         */
        void setStatus(java.lang.String status);

        /**
         * Sets (as xml) the "Status" element
         */
        void xsetStatus(org.codehaus.activemq.ws.schema.eventing.OpenSubscriptionEndCodeType status);

        /**
         * Gets array of all "Reason" elements
         */
        org.codehaus.activemq.ws.schema.eventing.LanguageSpecificStringType[] getReasonArray();

        /**
         * Gets ith "Reason" element
         */
        org.codehaus.activemq.ws.schema.eventing.LanguageSpecificStringType getReasonArray(int i);

        /**
         * Returns number of "Reason" element
         */
        int sizeOfReasonArray();

        /**
         * Sets array of all "Reason" element
         */
        void setReasonArray(org.codehaus.activemq.ws.schema.eventing.LanguageSpecificStringType[] reasonArray);

        /**
         * Sets ith "Reason" element
         */
        void setReasonArray(int i, org.codehaus.activemq.ws.schema.eventing.LanguageSpecificStringType reason);

        /**
         * Inserts and returns a new empty value (as xml) as the ith "Reason" element
         */
        org.codehaus.activemq.ws.schema.eventing.LanguageSpecificStringType insertNewReason(int i);

        /**
         * Appends and returns a new empty value (as xml) as the last "Reason" element
         */
        org.codehaus.activemq.ws.schema.eventing.LanguageSpecificStringType addNewReason();

        /**
         * Removes the ith "Reason" element
         */
        void removeReason(int i);

        /**
         * A factory class with static methods for creating instances
         * of this type.
         */

        public static final class Factory {
            public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument.SubscriptionEnd newInstance() {
                return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument.SubscriptionEnd) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance(type, null);
            }

            public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument.SubscriptionEnd newInstance(org.apache.xmlbeans.XmlOptions options) {
                return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument.SubscriptionEnd) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance(type, options);
            }

            private Factory() {
            } // No instance of this class allowed
        }
    }

    /**
     * A factory class with static methods for creating instances
     * of this type.
     */

    public static final class Factory {
        public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument newInstance() {
            return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance(type, null);
        }

        public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument newInstance(org.apache.xmlbeans.XmlOptions options) {
            return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance(type, options);
        }

        public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument parse(java.lang.String s) throws org.apache.xmlbeans.XmlException {
            return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse(s, type, null);
        }

        public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
            return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse(s, type, options);
        }

        public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException {
            return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse(f, type, null);
        }

        public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
            return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse(f, type, options);
        }

        public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
            return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse(u, type, null);
        }

        public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
            return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse(u, type, options);
        }

        public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
            return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse(is, type, null);
        }

        public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
            return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse(is, type, options);
        }

        public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
            return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse(r, type, null);
        }

        public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
            return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse(r, type, options);
        }

        public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
            return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse(node, type, null);
        }

        public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
            return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse(node, type, options);
        }

        public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
            return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse(xis, type, null);
        }

        public static org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
            return (org.codehaus.activemq.ws.schema.eventing.SubscriptionEndDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse(xis, type, options);
        }

        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 {
            return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream(xis, type, null);
        }

        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 {
            return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream(xis, type, options);
        }

        private Factory() {
        } // No instance of this class allowed
    }
}
