/*
 * An XML document type.
 * Localname: ErrorList
 * Namespace: http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd
 * Java type: org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument
 *
 * Automatically generated - do not modify.
 */
package org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20;


/**
 * A document containing one ErrorList(@http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd) element.
 *
 * This is a complex type.
 */
public interface ErrorListDocument extends org.apache.xmlbeans.XmlObject
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
        org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(ErrorListDocument.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.SchemasTypeSystem").resolveHandle("errorlist7295doctype");
    
    /**
     * Gets the "ErrorList" element
     */
    org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument.ErrorList getErrorList();
    
    /**
     * Sets the "ErrorList" element
     */
    void setErrorList(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument.ErrorList errorList);
    
    /**
     * Appends and returns a new empty "ErrorList" element
     */
    org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument.ErrorList addNewErrorList();
    
    /**
     * An XML ErrorList(@http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd).
     *
     * This is a complex type.
     */
    public interface ErrorList extends org.apache.xmlbeans.XmlObject
    {
        public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
            org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(ErrorList.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.SchemasTypeSystem").resolveHandle("errorlist4cc3elemtype");
        
        /**
         * Gets a List of "Error" elements
         */
        java.util.List<org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorDocument.Error> getErrorList();
        
        /**
         * Gets array of all "Error" elements
         * @deprecated
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorDocument.Error[] getErrorArray();
        
        /**
         * Gets ith "Error" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorDocument.Error getErrorArray(int i);
        
        /**
         * Returns number of "Error" element
         */
        int sizeOfErrorArray();
        
        /**
         * Sets array of all "Error" element
         */
        void setErrorArray(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorDocument.Error[] errorArray);
        
        /**
         * Sets ith "Error" element
         */
        void setErrorArray(int i, org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorDocument.Error error);
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "Error" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorDocument.Error insertNewError(int i);
        
        /**
         * Appends and returns a new empty value (as xml) as the last "Error" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorDocument.Error addNewError();
        
        /**
         * Removes the ith "Error" element
         */
        void removeError(int i);
        
        /**
         * Gets the "id" attribute
         */
        java.lang.String getId();
        
        /**
         * Gets (as xml) the "id" attribute
         */
        org.apache.xmlbeans.XmlID xgetId();
        
        /**
         * True if has "id" attribute
         */
        boolean isSetId();
        
        /**
         * Sets the "id" attribute
         */
        void setId(java.lang.String id);
        
        /**
         * Sets (as xml) the "id" attribute
         */
        void xsetId(org.apache.xmlbeans.XmlID id);
        
        /**
         * Unsets the "id" attribute
         */
        void unsetId();
        
        /**
         * Gets the "version" attribute
         */
        java.lang.String getVersion();
        
        /**
         * Gets (as xml) the "version" attribute
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString xgetVersion();
        
        /**
         * Sets the "version" attribute
         */
        void setVersion(java.lang.String version);
        
        /**
         * Sets (as xml) the "version" attribute
         */
        void xsetVersion(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString version);
        
        /**
         * Gets the "mustUnderstand" attribute
         */
        boolean getMustUnderstand();
        
        /**
         * Gets (as xml) the "mustUnderstand" attribute
         */
        org.xmlsoap.schemas.soap.envelope.MustUnderstandAttribute.MustUnderstand xgetMustUnderstand();
        
        /**
         * Sets the "mustUnderstand" attribute
         */
        void setMustUnderstand(boolean mustUnderstand);
        
        /**
         * Sets (as xml) the "mustUnderstand" attribute
         */
        void xsetMustUnderstand(org.xmlsoap.schemas.soap.envelope.MustUnderstandAttribute.MustUnderstand mustUnderstand);
        
        /**
         * Gets the "highestSeverity" attribute
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.SeverityType.Enum getHighestSeverity();
        
        /**
         * Gets (as xml) the "highestSeverity" attribute
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.SeverityType xgetHighestSeverity();
        
        /**
         * Sets the "highestSeverity" attribute
         */
        void setHighestSeverity(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.SeverityType.Enum highestSeverity);
        
        /**
         * Sets (as xml) the "highestSeverity" attribute
         */
        void xsetHighestSeverity(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.SeverityType highestSeverity);
        
        /**
         * A factory class with static methods for creating instances
         * of this type.
         */
        
        public static final class Factory
        {
            public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument.ErrorList newInstance() {
              return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument.ErrorList) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
            
            public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument.ErrorList newInstance(org.apache.xmlbeans.XmlOptions options) {
              return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument.ErrorList) 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.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument newInstance() {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
        
        /** @param file the file from which to load an xml document */
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        /** @deprecated {@link XMLInputStream} */
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {@link XMLInputStream} */
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument 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.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ErrorListDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        /** @deprecated {@link 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 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
    }
}
