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


/**
 * A document containing one MessageHeader(@http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd) element.
 *
 * This is a complex type.
 */
public interface MessageHeaderDocument extends org.apache.xmlbeans.XmlObject
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
        org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(MessageHeaderDocument.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.SchemasTypeSystem").resolveHandle("messageheader7727doctype");
    
    /**
     * Gets the "MessageHeader" element
     */
    org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader getMessageHeader();
    
    /**
     * Sets the "MessageHeader" element
     */
    void setMessageHeader(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader messageHeader);
    
    /**
     * Appends and returns a new empty "MessageHeader" element
     */
    org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader addNewMessageHeader();
    
    /**
     * An XML MessageHeader(@http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd).
     *
     * This is a complex type.
     */
    public interface MessageHeader extends org.apache.xmlbeans.XmlObject
    {
        public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
            org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(MessageHeader.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.SchemasTypeSystem").resolveHandle("messageheadere367elemtype");
        
        /**
         * Gets the "From" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.FromDocument.From getFrom();
        
        /**
         * Sets the "From" element
         */
        void setFrom(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.FromDocument.From from);
        
        /**
         * Appends and returns a new empty "From" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.FromDocument.From addNewFrom();
        
        /**
         * Gets the "To" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ToDocument.To getTo();
        
        /**
         * Sets the "To" element
         */
        void setTo(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ToDocument.To to);
        
        /**
         * Appends and returns a new empty "To" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ToDocument.To addNewTo();
        
        /**
         * Gets the "CPAId" element
         */
        java.lang.String getCPAId();
        
        /**
         * Gets (as xml) the "CPAId" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString xgetCPAId();
        
        /**
         * Sets the "CPAId" element
         */
        void setCPAId(java.lang.String cpaId);
        
        /**
         * Sets (as xml) the "CPAId" element
         */
        void xsetCPAId(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString cpaId);
        
        /**
         * Gets the "ConversationId" element
         */
        java.lang.String getConversationId();
        
        /**
         * Gets (as xml) the "ConversationId" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString xgetConversationId();
        
        /**
         * Sets the "ConversationId" element
         */
        void setConversationId(java.lang.String conversationId);
        
        /**
         * Sets (as xml) the "ConversationId" element
         */
        void xsetConversationId(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString conversationId);
        
        /**
         * Gets the "Service" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ServiceDocument.Service getService();
        
        /**
         * Sets the "Service" element
         */
        void setService(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ServiceDocument.Service service);
        
        /**
         * Appends and returns a new empty "Service" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ServiceDocument.Service addNewService();
        
        /**
         * Gets the "Action" element
         */
        java.lang.String getAction();
        
        /**
         * Gets (as xml) the "Action" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString xgetAction();
        
        /**
         * Sets the "Action" element
         */
        void setAction(java.lang.String action);
        
        /**
         * Sets (as xml) the "Action" element
         */
        void xsetAction(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString action);
        
        /**
         * Gets the "MessageData" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageDataDocument.MessageData getMessageData();
        
        /**
         * Sets the "MessageData" element
         */
        void setMessageData(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageDataDocument.MessageData messageData);
        
        /**
         * Appends and returns a new empty "MessageData" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageDataDocument.MessageData addNewMessageData();
        
        /**
         * Gets the "DuplicateElimination" element
         */
        org.apache.xmlbeans.XmlObject getDuplicateElimination();
        
        /**
         * True if has "DuplicateElimination" element
         */
        boolean isSetDuplicateElimination();
        
        /**
         * Sets the "DuplicateElimination" element
         */
        void setDuplicateElimination(org.apache.xmlbeans.XmlObject duplicateElimination);
        
        /**
         * Appends and returns a new empty "DuplicateElimination" element
         */
        org.apache.xmlbeans.XmlObject addNewDuplicateElimination();
        
        /**
         * Unsets the "DuplicateElimination" element
         */
        void unsetDuplicateElimination();
        
        /**
         * Gets a List of "Description" elements
         */
        java.util.List<org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description> getDescriptionList();
        
        /**
         * Gets array of all "Description" elements
         * @deprecated
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description[] getDescriptionArray();
        
        /**
         * Gets ith "Description" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description getDescriptionArray(int i);
        
        /**
         * Returns number of "Description" element
         */
        int sizeOfDescriptionArray();
        
        /**
         * Sets array of all "Description" element
         */
        void setDescriptionArray(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description[] descriptionArray);
        
        /**
         * Sets ith "Description" element
         */
        void setDescriptionArray(int i, org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description description);
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "Description" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description insertNewDescription(int i);
        
        /**
         * Appends and returns a new empty value (as xml) as the last "Description" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description addNewDescription();
        
        /**
         * Removes the ith "Description" element
         */
        void removeDescription(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);
        
        /**
         * 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.MessageHeaderDocument.MessageHeader newInstance() {
              return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
            
            public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader newInstance(org.apache.xmlbeans.XmlOptions options) {
              return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader) 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.MessageHeaderDocument newInstance() {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument) 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.MessageHeaderDocument parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument 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.MessageHeaderDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument 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.MessageHeaderDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument 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.MessageHeaderDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument 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.MessageHeaderDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        /** @deprecated {@link XMLInputStream} */
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument 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.MessageHeaderDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {@link XMLInputStream} */
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument 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.MessageHeaderDocument) 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
    }
}
