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


/**
 * A document containing one Manifest(@http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd) element.
 *
 * This is a complex type.
 */
public interface ManifestDocument extends org.apache.xmlbeans.XmlObject
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
        org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(ManifestDocument.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.SchemasTypeSystem").resolveHandle("manifest357adoctype");
    
    /**
     * Gets the "Manifest" element
     */
    org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument.Manifest getManifest();
    
    /**
     * Sets the "Manifest" element
     */
    void setManifest(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument.Manifest manifest);
    
    /**
     * Appends and returns a new empty "Manifest" element
     */
    org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument.Manifest addNewManifest();
    
    /**
     * An XML Manifest(@http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd).
     *
     * This is a complex type.
     */
    public interface Manifest extends org.apache.xmlbeans.XmlObject
    {
        public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
            org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Manifest.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.SchemasTypeSystem").resolveHandle("manifest3ce5elemtype");
        
        /**
         * Gets a List of "Reference" elements
         */
        java.util.List<org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument.Reference> getReferenceList();
        
        /**
         * Gets array of all "Reference" elements
         * @deprecated
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument.Reference[] getReferenceArray();
        
        /**
         * Gets ith "Reference" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument.Reference getReferenceArray(int i);
        
        /**
         * Returns number of "Reference" element
         */
        int sizeOfReferenceArray();
        
        /**
         * Sets array of all "Reference" element
         */
        void setReferenceArray(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument.Reference[] referenceArray);
        
        /**
         * Sets ith "Reference" element
         */
        void setReferenceArray(int i, org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument.Reference reference);
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "Reference" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument.Reference insertNewReference(int i);
        
        /**
         * Appends and returns a new empty value (as xml) as the last "Reference" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument.Reference addNewReference();
        
        /**
         * Removes the ith "Reference" element
         */
        void removeReference(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);
        
        /**
         * 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.ManifestDocument.Manifest newInstance() {
              return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument.Manifest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
            
            public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument.Manifest newInstance(org.apache.xmlbeans.XmlOptions options) {
              return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument.Manifest) 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.ManifestDocument newInstance() {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument) 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.ManifestDocument parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument 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.ManifestDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument 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.ManifestDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument 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.ManifestDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument 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.ManifestDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        /** @deprecated {@link XMLInputStream} */
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument 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.ManifestDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {@link XMLInputStream} */
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument 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.ManifestDocument) 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
    }
}
