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


/**
 * A document containing one Reference(@http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd) element.
 *
 * This is a complex type.
 */
public interface ReferenceDocument extends org.apache.xmlbeans.XmlObject
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
        org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(ReferenceDocument.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.SchemasTypeSystem").resolveHandle("referenced3b0doctype");
    
    /**
     * Gets the "Reference" element
     */
    org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument.Reference getReference();
    
    /**
     * Sets the "Reference" element
     */
    void setReference(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument.Reference reference);
    
    /**
     * Appends and returns a new empty "Reference" element
     */
    org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument.Reference addNewReference();
    
    /**
     * An XML Reference(@http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd).
     *
     * This is a complex type.
     */
    public interface Reference extends org.apache.xmlbeans.XmlObject
    {
        public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
            org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Reference.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.SchemasTypeSystem").resolveHandle("reference3e79elemtype");
        
        /**
         * Gets a List of "Schema" elements
         */
        java.util.List<org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.SchemaDocument.Schema> getSchemaList();
        
        /**
         * Gets array of all "Schema" elements
         * @deprecated
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.SchemaDocument.Schema[] getSchemaArray();
        
        /**
         * Gets ith "Schema" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.SchemaDocument.Schema getSchemaArray(int i);
        
        /**
         * Returns number of "Schema" element
         */
        int sizeOfSchemaArray();
        
        /**
         * Sets array of all "Schema" element
         */
        void setSchemaArray(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.SchemaDocument.Schema[] schemaArray);
        
        /**
         * Sets ith "Schema" element
         */
        void setSchemaArray(int i, org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.SchemaDocument.Schema schema);
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "Schema" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.SchemaDocument.Schema insertNewSchema(int i);
        
        /**
         * Appends and returns a new empty value (as xml) as the last "Schema" element
         */
        org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.SchemaDocument.Schema addNewSchema();
        
        /**
         * Removes the ith "Schema" element
         */
        void removeSchema(int i);
        
        /**
         * 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 "type" attribute
         */
        org.w3.x1999.xlink.TypeAttribute.Type.Enum getType();
        
        /**
         * Gets (as xml) the "type" attribute
         */
        org.w3.x1999.xlink.TypeAttribute.Type xgetType();
        
        /**
         * True if has "type" attribute
         */
        boolean isSetType();
        
        /**
         * Sets the "type" attribute
         */
        void setType(org.w3.x1999.xlink.TypeAttribute.Type.Enum type);
        
        /**
         * Sets (as xml) the "type" attribute
         */
        void xsetType(org.w3.x1999.xlink.TypeAttribute.Type type);
        
        /**
         * Unsets the "type" attribute
         */
        void unsetType();
        
        /**
         * Gets the "href" attribute
         */
        java.lang.String getHref();
        
        /**
         * Gets (as xml) the "href" attribute
         */
        org.apache.xmlbeans.XmlAnyURI xgetHref();
        
        /**
         * Sets the "href" attribute
         */
        void setHref(java.lang.String href);
        
        /**
         * Sets (as xml) the "href" attribute
         */
        void xsetHref(org.apache.xmlbeans.XmlAnyURI href);
        
        /**
         * Gets the "role" attribute
         */
        java.lang.String getRole();
        
        /**
         * Gets (as xml) the "role" attribute
         */
        org.apache.xmlbeans.XmlAnyURI xgetRole();
        
        /**
         * True if has "role" attribute
         */
        boolean isSetRole();
        
        /**
         * Sets the "role" attribute
         */
        void setRole(java.lang.String role);
        
        /**
         * Sets (as xml) the "role" attribute
         */
        void xsetRole(org.apache.xmlbeans.XmlAnyURI role);
        
        /**
         * Unsets the "role" attribute
         */
        void unsetRole();
        
        /**
         * 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.ReferenceDocument.Reference newInstance() {
              return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument.Reference) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
            
            public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument.Reference newInstance(org.apache.xmlbeans.XmlOptions options) {
              return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument.Reference) 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.ReferenceDocument newInstance() {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument) 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.ReferenceDocument parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument 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.ReferenceDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument 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.ReferenceDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument 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.ReferenceDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument 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.ReferenceDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        /** @deprecated {@link XMLInputStream} */
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument 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.ReferenceDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {@link XMLInputStream} */
        public static org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ReferenceDocument 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.ReferenceDocument) 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
    }
}
