/**
     * static method to create the object Precondition: If this object is an element, the current or
     * next start element starts this object and any intervening reader events are ignorable If this
     * object is not an element, it is a complex type and the reader is at the event just after the
     * outer start element Postcondition: If this object is an element, the reader is positioned at
     * its end element If this object is a complex type, the reader is positioned at the end element
     * of its outer element
     */
    public static DescribeSoqlListViewResult parse(javax.xml.stream.XMLStreamReader reader)
        throws java.lang.Exception {
      DescribeSoqlListViewResult object = new DescribeSoqlListViewResult();

      int event;
      java.lang.String nillableValue = null;
      java.lang.String prefix = "";
      java.lang.String namespaceuri = "";
      try {

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) {
          java.lang.String fullTypeName =
              reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type");
          if (fullTypeName != null) {
            java.lang.String nsPrefix = null;
            if (fullTypeName.indexOf(":") > -1) {
              nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":"));
            }
            nsPrefix = nsPrefix == null ? "" : nsPrefix;

            java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1);

            if (!"DescribeSoqlListViewResult".equals(type)) {
              // find namespace for the prefix
              java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
              return (DescribeSoqlListViewResult)
                  com.salesforce.soap.partner.sobject.ExtensionMapper.getTypeObject(
                      nsUri, type, reader);
            }
          }
        }

        // Note all attributes that were handled. Used to differ normal attributes
        // from anyAttributes.
        java.util.Vector handledAttributes = new java.util.Vector();

        reader.next();

        java.util.ArrayList list1 = new java.util.ArrayList();

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "describeSoqlListViews")
                .equals(reader.getName())) {

          // Process the array and step past its final element's end.
          list1.add(com.salesforce.soap.partner.DescribeSoqlListView.Factory.parse(reader));

          // loop until we find a start element that is not part of this array
          boolean loopDone1 = false;
          while (!loopDone1) {
            // We should be at the end element, but make sure
            while (!reader.isEndElement()) reader.next();
            // Step out of this element
            reader.next();
            // Step to next element event.
            while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
            if (reader.isEndElement()) {
              // two continuous end elements means we are exiting the xml structure
              loopDone1 = true;
            } else {
              if (new javax.xml.namespace.QName(
                      "urn:partner.soap.sforce.com", "describeSoqlListViews")
                  .equals(reader.getName())) {
                list1.add(com.salesforce.soap.partner.DescribeSoqlListView.Factory.parse(reader));

              } else {
                loopDone1 = true;
              }
            }
          }
          // call the converter utility to convert and set the array

          object.setDescribeSoqlListViews(
              (com.salesforce.soap.partner.DescribeSoqlListView[])
                  org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
                      com.salesforce.soap.partner.DescribeSoqlListView.class, list1));

        } // End of if for expected property start element
        else {
          // A start element we are not expecting indicates an invalid parameter was passed
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getName());
        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement())
          // A start element we are not expecting indicates a trailing invalid property
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getName());

      } catch (javax.xml.stream.XMLStreamException e) {
        throw new java.lang.Exception(e);
      }

      return object;
    }
    /**
     * static method to create the object Precondition: If this object is an element, the current or
     * next start element starts this object and any intervening reader events are ignorable If this
     * object is not an element, it is a complex type and the reader is at the event just after the
     * outer start element Postcondition: If this object is an element, the reader is positioned at
     * its end element If this object is a complex type, the reader is positioned at the end element
     * of its outer element
     */
    public static EchoArrayResponse parse(javax.xml.stream.XMLStreamReader reader)
        throws java.lang.Exception {
      EchoArrayResponse object = new EchoArrayResponse();

      int event;
      javax.xml.namespace.QName currentQName = null;
      java.lang.String nillableValue = null;
      java.lang.String prefix = "";
      java.lang.String namespaceuri = "";

      try {
        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        currentQName = reader.getName();

        if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) {
          java.lang.String fullTypeName =
              reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type");

          if (fullTypeName != null) {
            java.lang.String nsPrefix = null;

            if (fullTypeName.indexOf(":") > -1) {
              nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":"));
            }

            nsPrefix = (nsPrefix == null) ? "" : nsPrefix;

            java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1);

            if (!"echoArrayResponse".equals(type)) {
              // find namespace for the prefix
              java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);

              return (EchoArrayResponse)
                  edu.ucsb.cs.rpc.soap.service.types.ExtensionMapper.getTypeObject(
                      nsUri, type, reader);
            }
          }
        }

        // Note all attributes that were handled. Used to differ normal attributes
        // from anyAttributes.
        java.util.Vector handledAttributes = new java.util.Vector();

        reader.next();

        java.util.ArrayList list1 = new java.util.ArrayList();

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("http://base.rpc.cs.ucsb.edu", "return")
                .equals(reader.getName())) {
          // Process the array and step past its final element's end.
          list1.add(reader.getElementText());

          // loop until we find a start element that is not part of this array
          boolean loopDone1 = false;

          while (!loopDone1) {
            // Ensure we are at the EndElement
            while (!reader.isEndElement()) {
              reader.next();
            }

            // Step out of this element
            reader.next();

            // Step to next element event.
            while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

            if (reader.isEndElement()) {
              // two continuous end elements means we are exiting the xml structure
              loopDone1 = true;
            } else {
              if (new javax.xml.namespace.QName("http://base.rpc.cs.ucsb.edu", "return")
                  .equals(reader.getName())) {
                list1.add(reader.getElementText());
              } else {
                loopDone1 = true;
              }
            }
          }

          // call the converter utility  to convert and set the array
          object.set_return(
              (int[])
                  org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
                      int.class, list1));
        } // End of if for expected property start element
        else {
          // 1 - A start element we are not expecting indicates an invalid parameter was passed
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getName());
        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()) {
          // 2 - A start element we are not expecting indicates a trailing invalid property
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getName());
        }
      } catch (javax.xml.stream.XMLStreamException e) {
        throw new java.lang.Exception(e);
      }

      return object;
    }
    /**
     * static method to create the object Precondition: If this object is an element, the current or
     * next start element starts this object and any intervening reader events are ignorable If this
     * object is not an element, it is a complex type and the reader is at the event just after the
     * outer start element Postcondition: If this object is an element, the reader is positioned at
     * its end element If this object is a complex type, the reader is positioned at the end element
     * of its outer element
     */
    public static hr.ponge.pfa.axis.env.operations.UpdateUserResp parse(
        javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {
      hr.ponge.pfa.axis.env.operations.UpdateUserResp object =
          new hr.ponge.pfa.axis.env.operations.UpdateUserResp();
      int event;
      java.lang.String nillableValue = null;
      java.lang.String prefix = "";
      java.lang.String namespaceuri = "";
      try {
        while ((!(reader.isStartElement())) && (!(reader.isEndElement()))) reader.next();
        if ((reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"))
            != null) {
          java.lang.String fullTypeName =
              reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type");
          if (fullTypeName != null) {
            java.lang.String nsPrefix = null;
            if ((fullTypeName.indexOf(":")) > (-1)) {
              nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":"));
            }
            nsPrefix = nsPrefix == null ? "" : nsPrefix;
            java.lang.String type = fullTypeName.substring(((fullTypeName.indexOf(":")) + 1));
            if (!("UpdateUserResp".equals(type))) {
              java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
              return ((hr.ponge.pfa.axis.env.operations.UpdateUserResp)
                  (hr.ponge.pfa.axis.ExtensionMapper.getTypeObject(nsUri, type, reader)));
            }
          }
        }
        java.util.Vector handledAttributes = new java.util.Vector();
        reader.next();
        java.util.ArrayList list2 = new java.util.ArrayList();
        while ((!(reader.isStartElement())) && (!(reader.isEndElement()))) reader.next();
        if ((reader.isStartElement())
            && (new javax.xml.namespace.QName("http://ponge.hr/pfa/axis/env/operations", "user")
                .equals(reader.getName()))) {
          object.setUser(hr.ponge.pfa.axis.env.User.Factory.parse(reader));
          reader.next();
        } else {
        }
        while ((!(reader.isStartElement())) && (!(reader.isEndElement()))) reader.next();
        if ((reader.isStartElement())
            && (new javax.xml.namespace.QName("http://ponge.hr/pfa/axis/env/operations", "errors")
                .equals(reader.getName()))) {
          list2.add(hr.ponge.pfa.axis.base.ErrorType.Factory.parse(reader));
          boolean loopDone2 = false;
          while (!loopDone2) {
            while (!(reader.isEndElement())) reader.next();
            reader.next();
            while ((!(reader.isStartElement())) && (!(reader.isEndElement()))) reader.next();
            if (reader.isEndElement()) {
              loopDone2 = true;
            } else {
              if (new javax.xml.namespace.QName("http://ponge.hr/pfa/axis/env/operations", "errors")
                  .equals(reader.getName())) {
                list2.add(hr.ponge.pfa.axis.base.ErrorType.Factory.parse(reader));
              } else {
                loopDone2 = true;
              }
            }
          }
          object.setErrors(
              ((hr.ponge.pfa.axis.base.ErrorType[])
                  (org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
                      hr.ponge.pfa.axis.base.ErrorType.class, list2))));
        } else {
        }
        while ((!(reader.isStartElement())) && (!(reader.isEndElement()))) reader.next();
        if (reader.isStartElement())
          throw new org.apache.axis2.databinding.ADBException(
              ("Unexpected subelement " + (reader.getName())));

      } catch (javax.xml.stream.XMLStreamException e) {
        throw new java.lang.Exception(e);
      }
      return object;
    }
    /**
     * static method to create the object Precondition: If this object is an element, the current or
     * next start element starts this object and any intervening reader events are ignorable If this
     * object is not an element, it is a complex type and the reader is at the event just after the
     * outer start element Postcondition: If this object is an element, the reader is positioned at
     * its end element If this object is a complex type, the reader is positioned at the end element
     * of its outer element
     */
    public static Appointment parse(javax.xml.stream.XMLStreamReader reader)
        throws java.lang.Exception {
      Appointment object = new Appointment();

      int event;
      java.lang.String nillableValue = null;
      java.lang.String prefix = "";
      java.lang.String namespaceuri = "";
      try {

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) {
          java.lang.String fullTypeName =
              reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type");
          if (fullTypeName != null) {
            java.lang.String nsPrefix = null;
            if (fullTypeName.indexOf(":") > -1) {
              nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":"));
            }
            nsPrefix = nsPrefix == null ? "" : nsPrefix;

            java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1);

            if (!"Appointment".equals(type)) {
              // find namespace for the prefix
              java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
              return (Appointment) ExtensionMapper.getTypeObject(nsUri, type, reader);
            }
          }
        }

        // Note all attributes that were handled. Used to differ normal attributes
        // from anyAttributes.
        java.util.Vector handledAttributes = new java.util.Vector();

        reader.next();

        java.util.ArrayList list9 = new java.util.ArrayList();

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("http://virtuallabs.acrl.cis.fiu.edu", "id")
                .equals(reader.getName())) {

          java.lang.String content = reader.getElementText();

          object.setId(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));

          reader.next();

        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("http://virtuallabs.acrl.cis.fiu.edu", "userName")
                .equals(reader.getName())) {

          java.lang.String content = reader.getElementText();

          object.setUserName(
              org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));

          reader.next();

        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("http://virtuallabs.acrl.cis.fiu.edu", "start")
                .equals(reader.getName())) {

          java.lang.String content = reader.getElementText();

          object.setStart(
              org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));

          reader.next();

        } // End of if for expected property start element
        else {
          // A start element we are not expecting indicates an invalid parameter was passed
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getLocalName());
        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("http://virtuallabs.acrl.cis.fiu.edu", "end")
                .equals(reader.getName())) {

          java.lang.String content = reader.getElementText();

          object.setEnd(
              org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));

          reader.next();

        } // End of if for expected property start element
        else {
          // A start element we are not expecting indicates an invalid parameter was passed
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getLocalName());
        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("http://virtuallabs.acrl.cis.fiu.edu", "resourceType")
                .equals(reader.getName())) {

          java.lang.String content = reader.getElementText();

          object.setResourceType(
              org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));

          reader.next();

        } // End of if for expected property start element
        else {
          // A start element we are not expecting indicates an invalid parameter was passed
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getLocalName());
        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("http://virtuallabs.acrl.cis.fiu.edu", "course")
                .equals(reader.getName())) {

          java.lang.String content = reader.getElementText();

          object.setCourse(
              org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));

          reader.next();

        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("http://virtuallabs.acrl.cis.fiu.edu", "affiliationId")
                .equals(reader.getName())) {

          java.lang.String content = reader.getElementText();

          object.setAffiliationId(
              org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));

          reader.next();

        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName(
                    "http://virtuallabs.acrl.cis.fiu.edu", "availabilityStatus")
                .equals(reader.getName())) {

          java.lang.String content = reader.getElementText();

          object.setAvailabilityStatus(
              org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));

          reader.next();

        } // End of if for expected property start element
        else {
          // A start element we are not expecting indicates an invalid parameter was passed
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getLocalName());
        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("http://virtuallabs.acrl.cis.fiu.edu", "action")
                .equals(reader.getName())) {

          // Process the array and step past its final element's end.
          list9.add(Action.Factory.parse(reader));

          // loop until we find a start element that is not part of this array
          boolean loopDone9 = false;
          while (!loopDone9) {
            // We should be at the end element, but make sure
            while (!reader.isEndElement()) reader.next();
            // Step out of this element
            reader.next();
            // Step to next element event.
            while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
            if (reader.isEndElement()) {
              // two continuous end elements means we are exiting the xml structure
              loopDone9 = true;
            } else {
              if (new javax.xml.namespace.QName("http://virtuallabs.acrl.cis.fiu.edu", "action")
                  .equals(reader.getName())) {
                list9.add(Action.Factory.parse(reader));

              } else {
                loopDone9 = true;
              }
            }
          }
          // call the converter utility  to convert and set the array

          object.setAction(
              (Action[])
                  org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
                      Action.class, list9));

        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement())
          // A start element we are not expecting indicates a trailing invalid property
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getLocalName());

      } catch (javax.xml.stream.XMLStreamException e) {
        throw new java.lang.Exception(e);
      }

      return object;
    }
    /**
     * static method to create the object Precondition: If this object is an element, the current or
     * next start element starts this object and any intervening reader events are ignorable If this
     * object is not an element, it is a complex type and the reader is at the event just after the
     * outer start element Postcondition: If this object is an element, the reader is positioned at
     * its end element If this object is a complex type, the reader is positioned at the end element
     * of its outer element
     */
    public static WsAttributeDefNameDeleteResults parse(javax.xml.stream.XMLStreamReader reader)
        throws java.lang.Exception {
      WsAttributeDefNameDeleteResults object = new WsAttributeDefNameDeleteResults();

      int event;
      java.lang.String nillableValue = null;
      java.lang.String prefix = "";
      java.lang.String namespaceuri = "";
      try {

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) {
          java.lang.String fullTypeName =
              reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type");
          if (fullTypeName != null) {
            java.lang.String nsPrefix = null;
            if (fullTypeName.indexOf(":") > -1) {
              nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":"));
            }
            nsPrefix = nsPrefix == null ? "" : nsPrefix;

            java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1);

            if (!"WsAttributeDefNameDeleteResults".equals(type)) {
              // find namespace for the prefix
              java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
              return (WsAttributeDefNameDeleteResults)
                  edu.internet2.middleware.grouper.ws.soap_v2_2.xsd.ExtensionMapper.getTypeObject(
                      nsUri, type, reader);
            }
          }
        }

        // Note all attributes that were handled. Used to differ normal attributes
        // from anyAttributes.
        java.util.Vector handledAttributes = new java.util.Vector();

        reader.next();

        java.util.ArrayList list3 = new java.util.ArrayList();

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName(
                    "http://soap_v2_2.ws.grouper.middleware.internet2.edu/xsd", "responseMetadata")
                .equals(reader.getName())) {

          nillableValue =
              reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil");
          if ("true".equals(nillableValue) || "1".equals(nillableValue)) {
            object.setResponseMetadata(null);
            reader.next();

            reader.next();

          } else {

            object.setResponseMetadata(
                edu.internet2.middleware.grouper.ws.soap_v2_2.xsd.WsResponseMeta.Factory.parse(
                    reader));

            reader.next();
          }
        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName(
                    "http://soap_v2_2.ws.grouper.middleware.internet2.edu/xsd", "resultMetadata")
                .equals(reader.getName())) {

          nillableValue =
              reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil");
          if ("true".equals(nillableValue) || "1".equals(nillableValue)) {
            object.setResultMetadata(null);
            reader.next();

            reader.next();

          } else {

            object.setResultMetadata(
                edu.internet2.middleware.grouper.ws.soap_v2_2.xsd.WsResultMeta.Factory.parse(
                    reader));

            reader.next();
          }
        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName(
                    "http://soap_v2_2.ws.grouper.middleware.internet2.edu/xsd", "results")
                .equals(reader.getName())) {

          // Process the array and step past its final element's end.

          nillableValue =
              reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil");
          if ("true".equals(nillableValue) || "1".equals(nillableValue)) {
            list3.add(null);
            reader.next();
          } else {
            list3.add(
                edu.internet2.middleware.grouper.ws.soap_v2_2.xsd.WsAttributeDefNameDeleteResult
                    .Factory.parse(reader));
          }
          // loop until we find a start element that is not part of this array
          boolean loopDone3 = false;
          while (!loopDone3) {
            // We should be at the end element, but make sure
            while (!reader.isEndElement()) reader.next();
            // Step out of this element
            reader.next();
            // Step to next element event.
            while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
            if (reader.isEndElement()) {
              // two continuous end elements means we are exiting the xml structure
              loopDone3 = true;
            } else {
              if (new javax.xml.namespace.QName(
                      "http://soap_v2_2.ws.grouper.middleware.internet2.edu/xsd", "results")
                  .equals(reader.getName())) {

                nillableValue =
                    reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil");
                if ("true".equals(nillableValue) || "1".equals(nillableValue)) {
                  list3.add(null);
                  reader.next();
                } else {
                  list3.add(
                      edu.internet2.middleware.grouper.ws.soap_v2_2.xsd
                          .WsAttributeDefNameDeleteResult.Factory.parse(reader));
                }
              } else {
                loopDone3 = true;
              }
            }
          }
          // call the converter utility  to convert and set the array

          object.setResults(
              (edu.internet2.middleware.grouper.ws.soap_v2_2.xsd.WsAttributeDefNameDeleteResult[])
                  org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
                      edu.internet2.middleware.grouper.ws.soap_v2_2.xsd
                          .WsAttributeDefNameDeleteResult.class,
                      list3));

        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement())
          // A start element we are not expecting indicates a trailing invalid property
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getName());

      } catch (javax.xml.stream.XMLStreamException e) {
        throw new java.lang.Exception(e);
      }

      return object;
    }
    /**
     * static method to create the object Precondition: If this object is an element, the current or
     * next start element starts this object and any intervening reader events are ignorable If this
     * object is not an element, it is a complex type and the reader is at the event just after the
     * outer start element Postcondition: If this object is an element, the reader is positioned at
     * its end element If this object is a complex type, the reader is positioned at the end element
     * of its outer element
     */
    public static PutObject parse(javax.xml.stream.XMLStreamReader reader)
        throws java.lang.Exception {
      PutObject object = new PutObject();

      int event;
      java.lang.String nillableValue = null;
      java.lang.String prefix = "";
      java.lang.String namespaceuri = "";
      try {

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) {
          java.lang.String fullTypeName =
              reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type");
          if (fullTypeName != null) {
            java.lang.String nsPrefix = null;
            if (fullTypeName.indexOf(":") > -1) {
              nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":"));
            }
            nsPrefix = nsPrefix == null ? "" : nsPrefix;

            java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1);

            if (!"PutObject".equals(type)) {
              // find namespace for the prefix
              java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
              return (PutObject) com.amazon.s3.ExtensionMapper.getTypeObject(nsUri, type, reader);
            }
          }
        }

        // Note all attributes that were handled. Used to differ normal attributes
        // from anyAttributes.
        java.util.Vector handledAttributes = new java.util.Vector();

        reader.next();

        java.util.ArrayList list3 = new java.util.ArrayList();

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("http://s3.amazonaws.com/doc/2006-03-01/", "Bucket")
                .equals(reader.getName())) {

          java.lang.String content = reader.getElementText();

          object.setBucket(
              org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));

          reader.next();

        } // End of if for expected property start element
        else {
          // A start element we are not expecting indicates an invalid parameter was passed
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getLocalName());
        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("http://s3.amazonaws.com/doc/2006-03-01/", "Key")
                .equals(reader.getName())) {

          java.lang.String content = reader.getElementText();

          object.setKey(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));

          reader.next();

        } // End of if for expected property start element
        else {
          // A start element we are not expecting indicates an invalid parameter was passed
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getLocalName());
        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("http://s3.amazonaws.com/doc/2006-03-01/", "Metadata")
                .equals(reader.getName())) {

          // Process the array and step past its final element's end.
          list3.add(com.amazon.s3.MetadataEntry.Factory.parse(reader));

          // loop until we find a start element that is not part of this array
          boolean loopDone3 = false;
          while (!loopDone3) {
            // We should be at the end element, but make sure
            while (!reader.isEndElement()) reader.next();
            // Step out of this element
            reader.next();
            // Step to next element event.
            while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
            if (reader.isEndElement()) {
              // two continuous end elements means we are exiting the xml structure
              loopDone3 = true;
            } else {
              if (new javax.xml.namespace.QName(
                      "http://s3.amazonaws.com/doc/2006-03-01/", "Metadata")
                  .equals(reader.getName())) {
                list3.add(com.amazon.s3.MetadataEntry.Factory.parse(reader));

              } else {
                loopDone3 = true;
              }
            }
          }
          // call the converter utility  to convert and set the array

          object.setMetadata(
              (com.amazon.s3.MetadataEntry[])
                  org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
                      com.amazon.s3.MetadataEntry.class, list3));

        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName(
                    "http://s3.amazonaws.com/doc/2006-03-01/", "ContentLength")
                .equals(reader.getName())) {

          java.lang.String content = reader.getElementText();

          object.setContentLength(
              org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));

          reader.next();

        } // End of if for expected property start element
        else {
          // A start element we are not expecting indicates an invalid parameter was passed
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getLocalName());
        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName(
                    "http://s3.amazonaws.com/doc/2006-03-01/", "AccessControlList")
                .equals(reader.getName())) {

          object.setAccessControlList(com.amazon.s3.AccessControlList.Factory.parse(reader));

          reader.next();

        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName(
                    "http://s3.amazonaws.com/doc/2006-03-01/", "StorageClass")
                .equals(reader.getName())) {

          object.setStorageClass(com.amazon.s3.StorageClass.Factory.parse(reader));

          reader.next();

        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName(
                    "http://s3.amazonaws.com/doc/2006-03-01/", "AWSAccessKeyId")
                .equals(reader.getName())) {

          java.lang.String content = reader.getElementText();

          object.setAWSAccessKeyId(
              org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));

          reader.next();

        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("http://s3.amazonaws.com/doc/2006-03-01/", "Timestamp")
                .equals(reader.getName())) {

          java.lang.String content = reader.getElementText();

          object.setTimestamp(
              org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));

          reader.next();

        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("http://s3.amazonaws.com/doc/2006-03-01/", "Signature")
                .equals(reader.getName())) {

          java.lang.String content = reader.getElementText();

          object.setSignature(
              org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));

          reader.next();

        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName(
                    "http://s3.amazonaws.com/doc/2006-03-01/", "Credential")
                .equals(reader.getName())) {

          java.lang.String content = reader.getElementText();

          object.setCredential(
              org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));

          reader.next();

        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement())
          // A start element we are not expecting indicates a trailing invalid property
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getLocalName());

      } catch (javax.xml.stream.XMLStreamException e) {
        throw new java.lang.Exception(e);
      }

      return object;
    }
Exemple #7
0
    public static SessionFiles parse(final XMLStreamReader reader) throws Exception {
      final SessionFiles object = new SessionFiles();

      try {
        while (!reader.isStartElement() && !reader.isEndElement()) {
          reader.next();
        }

        if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) {
          final String fullTypeName =
              reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type");
          if (fullTypeName != null) {
            String nsPrefix = null;
            if (fullTypeName.indexOf(":") > -1) {
              nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":"));
            }
            nsPrefix = nsPrefix == null ? "" : nsPrefix;

            final String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1);

            if (!"SessionFiles".equals(type)) {
              // find namespace for the prefix
              final String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
              return (SessionFiles) ExtensionMapper.getTypeObject(nsUri, type, reader);
            }
          }
        }

        reader.next();
        final ArrayList<SessionFile> fileList = new ArrayList<SessionFile>();
        while (!reader.isStartElement() && !reader.isEndElement()) {
          reader.next();
        }

        if (reader.isStartElement() && new QName("", "name").equals(reader.getName())) {
          final String content = reader.getElementText();
          object.setName(ConverterUtil.convertToString(content));
          reader.next();
        } else {
          throw new ADBException("Unexpected subelement " + reader.getLocalName());
        }

        while (!reader.isStartElement() && !reader.isEndElement()) {
          reader.next();
        }

        if (reader.isStartElement() && new QName("", "files").equals(reader.getName())) {
          fileList.add(SessionFile.Factory.parse(reader));
          boolean noMore = false;
          while (!noMore) {
            while (!reader.isEndElement()) {
              reader.next();
            }

            reader.next();
            while (!reader.isStartElement() && !reader.isEndElement()) {
              reader.next();
            }

            if (reader.isEndElement()) {
              noMore = true;
            } else {
              if (new QName("", "files").equals(reader.getName())) {
                fileList.add(SessionFile.Factory.parse(reader));
              } else {
                noMore = true;
              }
            }
          }
          object.setFiles(
              (SessionFile[]) ConverterUtil.convertToArray(SessionFile.class, fileList));
        } else {
          throw new ADBException("Unexpected subelement " + reader.getLocalName());
        }

        while (!reader.isStartElement() && !reader.isEndElement()) {
          reader.next();
        }

        if (reader.isStartElement() && new QName("", "user").equals(reader.getName())) {
          final String content = reader.getElementText();
          object.setUser(ConverterUtil.convertToString(content));
          reader.next();
        } else {
          throw new ADBException("Unexpected subelement " + reader.getLocalName());
        }

        while (!reader.isStartElement() && !reader.isEndElement()) {
          reader.next();
        }
        if (reader.isStartElement()) {
          throw new ADBException("Unexpected subelement " + reader.getLocalName());
        }
      } catch (final XMLStreamException e) {
        throw new Exception(e);
      }

      return object;
    }
Exemple #8
0
    /**
     * static method to create the object Precondition: If this object is an element, the current or
     * next start element starts this object and any intervening reader events are ignorable If this
     * object is not an element, it is a complex type and the reader is at the event just after the
     * outer start element Postcondition: If this object is an element, the reader is positioned at
     * its end element If this object is a complex type, the reader is positioned at the end element
     * of its outer element
     */
    public static Query parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {
      Query object = new Query();

      int event;
      java.lang.String nillableValue = null;
      java.lang.String prefix = "";
      java.lang.String namespaceuri = "";
      try {

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) {
          java.lang.String fullTypeName =
              reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type");
          if (fullTypeName != null) {
            java.lang.String nsPrefix = null;
            if (fullTypeName.indexOf(":") > -1) {
              nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":"));
            }
            nsPrefix = nsPrefix == null ? "" : nsPrefix;

            java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1);

            if (!"Query".equals(type)) {
              // find namespace for the prefix
              java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
              return (Query)
                  org.intalio.ldaphelper.ExtensionMapper.getTypeObject(nsUri, type, reader);
            }
          }
        }

        // Note all attributes that were handled. Used to differ normal
        // attributes
        // from anyAttributes.
        java.util.Vector handledAttributes = new java.util.Vector();

        reader.next();

        java.util.ArrayList list2 = new java.util.ArrayList();

        java.util.ArrayList list3 = new java.util.ArrayList();

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("", "searchBase").equals(reader.getName())) {

          java.lang.String content = reader.getElementText();

          object.setSearchBase(
              org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));

          reader.next();

        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("", "Parameters").equals(reader.getName())) {

          // Process the array and step past its final element's end.
          list2.add(org.intalio.ldaphelper.Item.Factory.parse(reader));

          // loop until we find a start element that is not part of
          // this array
          boolean loopDone2 = false;
          while (!loopDone2) {
            // We should be at the end element, but make sure
            while (!reader.isEndElement()) reader.next();
            // Step out of this element
            reader.next();
            // Step to next element event.
            while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
            if (reader.isEndElement()) {
              // two continuous end elements means we are exiting
              // the xml structure
              loopDone2 = true;
            } else {
              if (new javax.xml.namespace.QName("", "Parameters").equals(reader.getName())) {
                list2.add(org.intalio.ldaphelper.Item.Factory.parse(reader));

              } else {
                loopDone2 = true;
              }
            }
          }
          // call the converter utility to convert and set the array

          object.setParameters(
              (org.intalio.ldaphelper.Item[])
                  org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
                      org.intalio.ldaphelper.Item.class, list2));

        } // End of if for expected property start element
        else {
          // A start element we are not expecting indicates an invalid
          // parameter was passed
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getLocalName());
        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName("", "Returns").equals(reader.getName())) {

          // Process the array and step past its final element's end.
          list3.add(reader.getElementText());

          // loop until we find a start element that is not part of
          // this array
          boolean loopDone3 = false;
          while (!loopDone3) {
            // Ensure we are at the EndElement
            while (!reader.isEndElement()) {
              reader.next();
            }
            // Step out of this element
            reader.next();
            // Step to next element event.
            while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
            if (reader.isEndElement()) {
              // two continuous end elements means we are exiting
              // the xml structure
              loopDone3 = true;
            } else {
              if (new javax.xml.namespace.QName("", "Returns").equals(reader.getName())) {
                list3.add(reader.getElementText());

              } else {
                loopDone3 = true;
              }
            }
          }
          // call the converter utility to convert and set the array

          object.setReturns((java.lang.String[]) list3.toArray(new java.lang.String[list3.size()]));

        } // End of if for expected property start element
        else {
          // A start element we are not expecting indicates an invalid
          // parameter was passed
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getLocalName());
        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement())
          // A start element we are not expecting indicates a trailing
          // invalid property
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getLocalName());

      } catch (javax.xml.stream.XMLStreamException e) {
        throw new java.lang.Exception(e);
      }

      return object;
    }
    /**
     * static method to create the object Precondition: If this object is an element, the current or
     * next start element starts this object and any intervening reader events are ignorable If this
     * object is not an element, it is a complex type and the reader is at the event just after the
     * outer start element Postcondition: If this object is an element, the reader is positioned at
     * its end element If this object is a complex type, the reader is positioned at the end element
     * of its outer element
     */
    public static ArrayOfMWSSyncCommunicationSetting parse(javax.xml.stream.XMLStreamReader reader)
        throws java.lang.Exception {
      ArrayOfMWSSyncCommunicationSetting object = new ArrayOfMWSSyncCommunicationSetting();

      int event;
      java.lang.String nillableValue = null;
      java.lang.String prefix = "";
      java.lang.String namespaceuri = "";
      try {

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) {
          java.lang.String fullTypeName =
              reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type");
          if (fullTypeName != null) {
            java.lang.String nsPrefix = null;
            if (fullTypeName.indexOf(":") > -1) {
              nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":"));
            }
            nsPrefix = nsPrefix == null ? "" : nsPrefix;

            java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1);

            if (!"ArrayOfMWSSyncCommunicationSetting".equals(type)) {
              // find namespace for the prefix
              java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
              return (ArrayOfMWSSyncCommunicationSetting)
                  com.autometrics.analytics.v9.j2ee.webservices.ExtensionMapper.getTypeObject(
                      nsUri, type, reader);
            }
          }
        }

        // Note all attributes that were handled. Used to differ normal
        // attributes
        // from anyAttributes.
        java.util.Vector handledAttributes = new java.util.Vector();

        reader.next();

        java.util.ArrayList list1 = new java.util.ArrayList();

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()
            && new javax.xml.namespace.QName(
                    "http://microstrategy.com/webservices/v1_0", "MWSSyncCommunicationSetting")
                .equals(reader.getName())) {

          // Process the array and step past its final element's end.

          nillableValue =
              reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil");
          if ("true".equals(nillableValue) || "1".equals(nillableValue)) {
            list1.add(null);
            reader.next();
          } else {
            list1.add(
                com.autometrics.analytics.v9.j2ee.webservices.v1_0.MWSSyncCommunicationSetting
                    .Factory.parse(reader));
          }
          // loop until we find a start element that is not part of
          // this array
          boolean loopDone1 = false;
          while (!loopDone1) {
            // We should be at the end element, but make sure
            while (!reader.isEndElement()) reader.next();
            // Step out of this element
            reader.next();
            // Step to next element event.
            while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
            if (reader.isEndElement()) {
              // two continuous end elements means we are exiting
              // the xml structure
              loopDone1 = true;
            } else {
              if (new javax.xml.namespace.QName(
                      "http://microstrategy.com/webservices/v1_0", "MWSSyncCommunicationSetting")
                  .equals(reader.getName())) {

                nillableValue =
                    reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil");
                if ("true".equals(nillableValue) || "1".equals(nillableValue)) {
                  list1.add(null);
                  reader.next();
                } else {
                  list1.add(
                      com.autometrics.analytics.v9.j2ee.webservices.v1_0.MWSSyncCommunicationSetting
                          .Factory.parse(reader));
                }
              } else {
                loopDone1 = true;
              }
            }
          }
          // call the converter utility to convert and set the array

          object.setMWSSyncCommunicationSetting(
              (com.autometrics.analytics.v9.j2ee.webservices.v1_0.MWSSyncCommunicationSetting[])
                  org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
                      com.autometrics.analytics.v9.j2ee.webservices.v1_0.MWSSyncCommunicationSetting
                          .class,
                      list1));

        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement())
          // A start element we are not expecting indicates a trailing
          // invalid property
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getLocalName());

      } catch (javax.xml.stream.XMLStreamException e) {
        throw new java.lang.Exception(e);
      }

      return object;
    }
Exemple #10
0
    /**
     * static method to create the object Precondition: If this object is an element, the current or
     * next start element starts this object and any intervening reader events are ignorable If this
     * object is not an element, it is a complex type and the reader is at the event just after the
     * outer start element Postcondition: If this object is an element, the reader is positioned at
     * its end element If this object is a complex type, the reader is positioned at the end element
     * of its outer element
     */
    public static Data_type0 parse(javax.xml.stream.XMLStreamReader reader)
        throws java.lang.Exception {
      Data_type0 object = new Data_type0();

      int event;
      java.lang.String nillableValue = null;
      java.lang.String prefix = "";
      java.lang.String namespaceuri = "";
      try {

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) {
          java.lang.String fullTypeName =
              reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type");
          if (fullTypeName != null) {
            java.lang.String nsPrefix = null;
            if (fullTypeName.indexOf(":") > -1) {
              nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":"));
            }
            nsPrefix = nsPrefix == null ? "" : nsPrefix;

            java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1);

            if (!"data_type0".equals(type)) {
              // find namespace for the prefix
              java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
              return (Data_type0)
                  com.intalio.www.bpms.workflow.taskmanagementservices_20051109.ExtensionMapper
                      .getTypeObject(nsUri, type, reader);
            }
          }
        }

        // Note all attributes that were handled. Used to differ normal attributes
        // from anyAttributes.
        java.util.Vector handledAttributes = new java.util.Vector();

        reader.next();

        java.util.ArrayList list1 = new java.util.ArrayList();

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement()) {

          // Process the array and step past its final element's end.

          boolean loopDone1 = false;

          while (!loopDone1) {
            event = reader.getEventType();
            if (javax.xml.stream.XMLStreamConstants.START_ELEMENT == event) {

              // We need to wrap the reader so that it produces a fake START_DOCUEMENT event
              org.apache.axis2.databinding.utils.NamedStaxOMBuilder builder1 =
                  new org.apache.axis2.databinding.utils.NamedStaxOMBuilder(
                      new org.apache.axis2.util.StreamWrapper(reader), reader.getName());

              list1.add(builder1.getOMElement());
              reader.next();
              if (reader.isEndElement()) {
                // we have two countinuos end elements
                loopDone1 = true;
              }

            } else if (javax.xml.stream.XMLStreamConstants.END_ELEMENT == event) {
              loopDone1 = true;
            } else {
              reader.next();
            }
          }

          object.setExtraElement(
              (org.apache.axiom.om.OMElement[])
                  org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
                      org.apache.axiom.om.OMElement.class, list1));

        } // End of if for expected property start element
        else {

        }

        while (!reader.isStartElement() && !reader.isEndElement()) reader.next();

        if (reader.isStartElement())
          // A start element we are not expecting indicates a trailing invalid property
          throw new org.apache.axis2.databinding.ADBException(
              "Unexpected subelement " + reader.getName());

      } catch (javax.xml.stream.XMLStreamException e) {
        throw new java.lang.Exception(e);
      }

      return object;
    }