/*
 * An XML document type.
 * Localname: statement
 * Namespace: http://statement
 * Java type: statement.StatementDocument
 *
 * Automatically generated - do not modify.
 */
package statement;


/**
 * A document containing one statement(@http://statement) element.
 *
 * This is a complex type.
 */
public interface StatementDocument extends org.apache.xmlbeans.XmlObject
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
        org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(StatementDocument.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s51C8853043FF8935634ECEEAA2F754AB").resolveHandle("statement2987doctype");
    
    /**
     * Gets the "statement" element
     */
    statement.StatementDocument.Statement getStatement();
    
    /**
     * Sets the "statement" element
     */
    void setStatement(statement.StatementDocument.Statement statement);
    
    /**
     * Appends and returns a new empty "statement" element
     */
    statement.StatementDocument.Statement addNewStatement();
    
    /**
     * An XML statement(@http://statement).
     *
     * This is a complex type.
     */
    public interface Statement extends org.apache.xmlbeans.XmlObject
    {
        public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
            org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Statement.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s51C8853043FF8935634ECEEAA2F754AB").resolveHandle("statement8f8celemtype");
        
        /**
         * Gets array of all "deposit" elements
         */
        statement.Transaction[] getDepositArray();
        
        /**
         * Gets ith "deposit" element
         */
        statement.Transaction getDepositArray(int i);
        
        /**
         * Returns number of "deposit" element
         */
        int sizeOfDepositArray();
        
        /**
         * Sets array of all "deposit" element
         */
        void setDepositArray(statement.Transaction[] depositArray);
        
        /**
         * Sets ith "deposit" element
         */
        void setDepositArray(int i, statement.Transaction deposit);
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "deposit" element
         */
        statement.Transaction insertNewDeposit(int i);
        
        /**
         * Appends and returns a new empty value (as xml) as the last "deposit" element
         */
        statement.Transaction addNewDeposit();
        
        /**
         * Removes the ith "deposit" element
         */
        void removeDeposit(int i);
        
        /**
         * Gets array of all "withdrawal" elements
         */
        statement.Transaction[] getWithdrawalArray();
        
        /**
         * Gets ith "withdrawal" element
         */
        statement.Transaction getWithdrawalArray(int i);
        
        /**
         * Returns number of "withdrawal" element
         */
        int sizeOfWithdrawalArray();
        
        /**
         * Sets array of all "withdrawal" element
         */
        void setWithdrawalArray(statement.Transaction[] withdrawalArray);
        
        /**
         * Sets ith "withdrawal" element
         */
        void setWithdrawalArray(int i, statement.Transaction withdrawal);
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "withdrawal" element
         */
        statement.Transaction insertNewWithdrawal(int i);
        
        /**
         * Appends and returns a new empty value (as xml) as the last "withdrawal" element
         */
        statement.Transaction addNewWithdrawal();
        
        /**
         * Removes the ith "withdrawal" element
         */
        void removeWithdrawal(int i);
        
        /**
         * A factory class with static methods for creating instances
         * of this type.
         */
        
        public static final class Factory
        {
            public static statement.StatementDocument.Statement newInstance() {
              return (statement.StatementDocument.Statement) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
            
            public static statement.StatementDocument.Statement newInstance(org.apache.xmlbeans.XmlOptions options) {
              return (statement.StatementDocument.Statement) 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 statement.StatementDocument newInstance() {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static statement.StatementDocument newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static statement.StatementDocument parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static statement.StatementDocument parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
        
        /** @param file the file from which to load an xml document */
        public static statement.StatementDocument parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static statement.StatementDocument parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static statement.StatementDocument parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static statement.StatementDocument parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static statement.StatementDocument parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static statement.StatementDocument parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static statement.StatementDocument parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static statement.StatementDocument parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static statement.StatementDocument parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static statement.StatementDocument parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static statement.StatementDocument parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static statement.StatementDocument parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static statement.StatementDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static statement.StatementDocument 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 (statement.StatementDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        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 ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        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
    }
}
