Example #1
0
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      final org.apache.axiom.om.OMFactory factory,
      org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();

    if ((namespace != null) && (namespace.trim().length() > 0)) {
      java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
      if (writerPrefix != null) {
        xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
      } else {
        if (prefix == null) {
          prefix = generatePrefix(namespace);
        }

        xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);
      }
    } else {
      xmlWriter.writeStartElement(parentQName.getLocalPart());
    }

    if (serializeType) {

      java.lang.String namespacePrefix =
          registerPrefix(xmlWriter, "http://schemas.xmlsoap.org/soap/encoding/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":dateTime",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "dateTime", xmlWriter);
      }
    }

    if (localDateTime == null) {
      // write the nil attribute

      throw new org.apache.axis2.databinding.ADBException("dateTime cannot be null!!");

    } else {

      xmlWriter.writeCharacters(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDateTime));
    }

    xmlWriter.writeEndElement();
  }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      final org.apache.axiom.om.OMFactory factory,
      org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();

    if ((namespace != null) && (namespace.trim().length() > 0)) {
      java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
      if (writerPrefix != null) {
        xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
      } else {
        if (prefix == null) {
          prefix = generatePrefix(namespace);
        }

        xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);
      }
    } else {
      xmlWriter.writeStartElement(parentQName.getLocalPart());
    }

    if (serializeType) {

      java.lang.String namespacePrefix =
          registerPrefix(xmlWriter, "http://www.example.org/UI_BPEL-Mediator/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":dataInputUIResponse",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "dataInputUIResponse",
            xmlWriter);
      }
    }

    if (localData == null) {
      throw new org.apache.axis2.databinding.ADBException("data cannot be null!!");
    }
    localData.serialize(new javax.xml.namespace.QName("", "data"), factory, xmlWriter);

    xmlWriter.writeEndElement();
  }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      final org.apache.axiom.om.OMFactory factory,
      org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();

    if ((namespace != null) && (namespace.trim().length() > 0)) {
      java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
      if (writerPrefix != null) {
        xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
      } else {
        if (prefix == null) {
          prefix = generatePrefix(namespace);
        }

        xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);
      }
    } else {
      xmlWriter.writeStartElement(parentQName.getLocalPart());
    }

    if (serializeType) {

      java.lang.String namespacePrefix =
          registerPrefix(xmlWriter, "http://ec2.amazonaws.com/doc/2009-10-31/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":DeleteSpotDatafeedSubscriptionType",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "DeleteSpotDatafeedSubscriptionType",
            xmlWriter);
      }
    }

    xmlWriter.writeEndElement();
  }
  /** Util method to write an attribute without the ns prefix */
  private void writeQNameAttribute(
      java.lang.String namespace,
      java.lang.String attName,
      javax.xml.namespace.QName qname,
      javax.xml.stream.XMLStreamWriter xmlWriter)
      throws javax.xml.stream.XMLStreamException {

    java.lang.String attributeNamespace = qname.getNamespaceURI();
    java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
    if (attributePrefix == null) {
      attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
    }
    java.lang.String attributeValue;
    if (attributePrefix.trim().length() > 0) {
      attributeValue = attributePrefix + ":" + qname.getLocalPart();
    } else {
      attributeValue = qname.getLocalPart();
    }

    if (namespace.equals("")) {
      xmlWriter.writeAttribute(attName, attributeValue);
    } else {
      registerPrefix(xmlWriter, namespace);
      xmlWriter.writeAttribute(namespace, attName, attributeValue);
    }
  }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix = registerPrefix(xmlWriter, "http://bam.carbon.wso2.org");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":getServerListForActivity",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "getServerListForActivity",
            xmlWriter);
      }
    }

    xmlWriter.writeEndElement();
  }
  /** method to handle Qnames */
  private void writeQName(
      javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter)
      throws javax.xml.stream.XMLStreamException {
    java.lang.String namespaceURI = qname.getNamespaceURI();
    if (namespaceURI != null) {
      java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
      if (prefix == null) {
        prefix = generatePrefix(namespaceURI);
        xmlWriter.writeNamespace(prefix, namespaceURI);
        xmlWriter.setPrefix(prefix, namespaceURI);
      }

      if (prefix.trim().length() > 0) {
        xmlWriter.writeCharacters(
            prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
      } else {
        // i.e this is the default namespace
        xmlWriter.writeCharacters(
            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
      }

    } else {
      xmlWriter.writeCharacters(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
    }
  }
Example #7
0
 /**
  * Build a {@PListObject} from a string that matches one of the tags defined in {@link Constants}.
  *
  * @param tag
  * @param value can be null if tag equals {@link Constants#TAG_BOOL_FALSE} or {@link
  *     Constants#TAG_BOOL_TRUE}.
  * @throws Exception
  * @todo replace with factory for PListObject
  */
 public PListObject buildObject(java.lang.String tag, java.lang.String value) throws Exception {
   if (null == tag) {
     throw new Exception("Cannot add a child with a null tag to a PList.");
   }
   PListObject ret = null;
   if (tag.equalsIgnoreCase(Constants.TAG_INTEGER)) {
     ret = new Integer();
     ((Integer) ret).setValue(value);
   } else if (tag.equalsIgnoreCase(Constants.TAG_STRING)) {
     ret = new String();
     ((String) ret).setValue(value);
   } else if (tag.equalsIgnoreCase(Constants.TAG_REAL)) {
     ret = new Real();
     ((Real) ret).setValue(value);
   } else if (tag.equalsIgnoreCase(Constants.TAG_DATE)) {
     ret = new Date();
     ((Date) ret).setValue(value);
   } else if (tag.equalsIgnoreCase(Constants.TAG_BOOL_FALSE)) {
     ret = new False();
   } else if (tag.equalsIgnoreCase(Constants.TAG_BOOL_TRUE)) {
     ret = new True();
   } else if (tag.equalsIgnoreCase(Constants.TAG_DATA)) {
     ret = new Data();
     ((Data) ret).setValue(value.trim(), true);
   } else if (tag.equalsIgnoreCase(Constants.TAG_DICT)) {
     ret = new Dict();
   } else if (tag.equalsIgnoreCase(Constants.TAG_PLIST_ARRAY)) {
     ret = new Array();
   }
   return ret;
 }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:partner.soap.sforce.com");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":describeSearchLayoutsResponse",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "describeSearchLayoutsResponse",
            xmlWriter);
      }
    }
    if (localResultTracker) {
      if (localResult != null) {
        for (int i = 0; i < localResult.length; i++) {
          if (localResult[i] != null) {
            localResult[i].serialize(
                new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"), xmlWriter);
          } else {

            writeStartElement(null, "urn:partner.soap.sforce.com", "result", xmlWriter);

            // write the nil attribute
            writeAttribute(
                "xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter);
            xmlWriter.writeEndElement();
          }
        }
      } else {

        writeStartElement(null, "urn:partner.soap.sforce.com", "result", xmlWriter);

        // write the nil attribute
        writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter);
        xmlWriter.writeEndElement();
      }
    }
    xmlWriter.writeEndElement();
  }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix = registerPrefix(xmlWriter, "http://BCXLiqODPCmx.bcx.cl/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":odpWS200151SOLLIQResult",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "odpWS200151SOLLIQResult",
            xmlWriter);
      }
    }
    if (localItemoutTracker) {
      if (localItemout == null) {
        throw new org.apache.axis2.databinding.ADBException("itemout cannot be null!!");
      }
      localItemout.serialize(new javax.xml.namespace.QName("", "itemout"), xmlWriter);
    }
    namespace = "";
    writeStartElement(null, namespace, "returnValue", xmlWriter);

    if (localReturnValue == java.lang.Integer.MIN_VALUE) {

      throw new org.apache.axis2.databinding.ADBException("returnValue cannot be null!!");

    } else {
      xmlWriter.writeCharacters(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReturnValue));
    }

    xmlWriter.writeEndElement();
    if (localRowsTracker) {
      if (localRows == null) {
        throw new org.apache.axis2.databinding.ADBException("rows cannot be null!!");
      }
      localRows.serialize(new javax.xml.namespace.QName("", "rows"), xmlWriter);
    }
    xmlWriter.writeEndElement();
  }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix = registerPrefix(xmlWriter, "http://service.web.bio");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":viewSubAdminSystemResponse",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "viewSubAdminSystemResponse",
            xmlWriter);
      }
    }
    if (local_returnTracker) {
      if (local_return != null) {
        for (int i = 0; i < local_return.length; i++) {
          if (local_return[i] != null) {
            local_return[i].serialize(
                new javax.xml.namespace.QName("http://service.web.bio", "return"), xmlWriter);
          } else {

            writeStartElement(null, "http://service.web.bio", "return", xmlWriter);

            // write the nil attribute
            writeAttribute(
                "xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter);
            xmlWriter.writeEndElement();
          }
        }
      } else {

        writeStartElement(null, "http://service.web.bio", "return", xmlWriter);

        // write the nil attribute
        writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter);
        xmlWriter.writeEndElement();
      }
    }
    xmlWriter.writeEndElement();
  }
Example #11
0
 public java.lang.String getTypeOfHandlerForGuardRegion() {
   if (exceptionName == null || exceptionName.trim().length() == 0) {
     exceptionName = getExceptionName();
   }
   if (exceptionName != null && exceptionName.trim().length() != 0) {
     if (exceptionName.equals("<any>")) {
       setTypeOfHandlerForGuardRegion("FinallyBlock");
       return "FinallyBlock";
     } else {
       setTypeOfHandlerForGuardRegion("CatchBlock");
       return "CatchBlock";
     }
   } else {
     setTypeOfHandlerForGuardRegion("UNKNOWN HANDLER");
     return "UNKNOWN HANDLER";
   }
 }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      final org.apache.axiom.om.OMFactory factory,
      org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    // We can safely assume an element has only one type associated with it

    java.lang.String namespace = parentQName.getNamespaceURI();
    java.lang.String localName = parentQName.getLocalPart();

    if (!namespace.equals("")) {
      java.lang.String prefix = xmlWriter.getPrefix(namespace);

      if (prefix == null) {
        prefix = generatePrefix(namespace);

        xmlWriter.writeStartElement(prefix, localName, namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, localName);
      }

    } else {
      xmlWriter.writeStartElement(localName);
    }

    // add the type details if this is used in a simple type
    if (serializeType) {
      java.lang.String namespacePrefix =
          registerPrefix(xmlWriter, "http://api.eyeblaster.com/V1/DataContracts");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":TimeZone",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TimeZone", xmlWriter);
      }
    }

    if (localTimeZone == null) {

      throw new org.apache.axis2.databinding.ADBException("Value cannot be null !!");

    } else {

      xmlWriter.writeCharacters(localTimeZone);
    }

    xmlWriter.writeEndElement();
  }
Example #13
0
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      final org.apache.axiom.om.OMFactory factory,
      org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    // We can safely assume an element has only one type associated with it

    java.lang.String namespace = "http://schemas.microsoft.com/2003/10/Serialization/";
    java.lang.String localName = "double";

    if (!namespace.equals("")) {
      java.lang.String prefix = xmlWriter.getPrefix(namespace);

      if (prefix == null) {
        prefix = generatePrefix(namespace);

        xmlWriter.writeStartElement(prefix, localName, namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, localName);
      }

    } else {
      xmlWriter.writeStartElement(localName);
    }

    // add the type details if this is used in a simple type
    if (serializeType) {
      java.lang.String namespacePrefix =
          registerPrefix(xmlWriter, "http://schemas.microsoft.com/2003/10/Serialization/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":double",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "double", xmlWriter);
      }
    }

    if (java.lang.Double.isNaN(local_double)) {

      writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter);

    } else {
      xmlWriter.writeCharacters(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_double));
    }

    xmlWriter.writeEndElement();
  }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:fault.ws.rsys.com");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":TableFault",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TableFault", xmlWriter);
      }
    }

    if (localExceptionCode == null) {

      writeStartElement(null, "urn:fault.ws.rsys.com", "exceptionCode", xmlWriter);

      // write the nil attribute
      writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter);
      xmlWriter.writeEndElement();
    } else {
      localExceptionCode.serialize(
          new javax.xml.namespace.QName("urn:fault.ws.rsys.com", "exceptionCode"), xmlWriter);
    }

    namespace = "urn:fault.ws.rsys.com";
    writeStartElement(null, namespace, "exceptionMessage", xmlWriter);

    if (localExceptionMessage == null) {
      // write the nil attribute

      writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter);

    } else {

      xmlWriter.writeCharacters(localExceptionMessage);
    }

    xmlWriter.writeEndElement();

    xmlWriter.writeEndElement();
  }
Example #15
0
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix =
          registerPrefix(
              xmlWriter, "http://www.intalio.com/BPMS/Workflow/TaskManagementServices-20051109/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":attachment",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "attachment", xmlWriter);
      }
    }

    if (localAttachmentMetadata == null) {
      throw new org.apache.axis2.databinding.ADBException("attachmentMetadata cannot be null!!");
    }
    localAttachmentMetadata.serialize(
        new javax.xml.namespace.QName(
            "http://www.intalio.com/BPMS/Workflow/TaskManagementServices-20051109/",
            "attachmentMetadata"),
        xmlWriter);

    namespace = "http://www.intalio.com/BPMS/Workflow/TaskManagementServices-20051109/";
    writeStartElement(null, namespace, "payloadUrl", xmlWriter);

    if (localPayloadUrl == null) {
      // write the nil attribute

      throw new org.apache.axis2.databinding.ADBException("payloadUrl cannot be null!!");

    } else {

      xmlWriter.writeCharacters(localPayloadUrl);
    }

    xmlWriter.writeEndElement();

    xmlWriter.writeEndElement();
  }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix =
          registerPrefix(
              xmlWriter,
              "http://www.altinn.no/services/Authentication/SystemAuthentication/2009/10");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":GetAuthenticationChallenge",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "GetAuthenticationChallenge",
            xmlWriter);
      }
    }
    if (localChallengeRequestTracker) {
      if (localChallengeRequest == null) {

        writeStartElement(
            null,
            "http://www.altinn.no/services/Authentication/SystemAuthentication/2009/10",
            "challengeRequest",
            xmlWriter);

        // write the nil attribute
        writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter);
        xmlWriter.writeEndElement();
      } else {
        localChallengeRequest.serialize(
            new javax.xml.namespace.QName(
                "http://www.altinn.no/services/Authentication/SystemAuthentication/2009/10",
                "challengeRequest"),
            xmlWriter);
      }
    }
    xmlWriter.writeEndElement();
  }
Example #17
0
 protected java.lang.String doRequest(java.lang.String s, boolean flag, java.lang.String s1)
     throws java.lang.Exception {
   if (s == null) {
     throw new Exception("Paramater uri cannot be null");
   }
   com.dragonflow.Utils.SocketSession socketsession =
       com.dragonflow.Utils.SocketSession.getSession(null);
   java.lang.StringBuffer stringbuffer = new StringBuffer(10000);
   java.lang.String s2 = "http://" + getConnID() + s;
   jgl.Array array = null;
   if (s1 != null) {
     array = new Array();
     array.add("Custom-Content: " + s1);
   }
   long al[] =
       com.dragonflow.StandardMonitor.URLMonitor.checkURL(
           socketsession,
           s2,
           null,
           null,
           null,
           null,
           null,
           array,
           null,
           null,
           null,
           stringbuffer,
           0x989680L,
           null,
           0,
           60000,
           null);
   java.lang.String s3 =
       com.dragonflow.StandardMonitor.URLMonitor.getHTTPContent(stringbuffer.toString());
   if (al[0] == 200L) {
     s3 = s3.trim();
     if (s3.startsWith("<") && flag) {
       java.lang.String s5 = s3.substring(0, 50);
       java.lang.String s4;
       if (s3.indexOf("<P>") >= 0) {
         xmlKeys = xmlShortKeys;
         s4 = "J2EEGetListShort.xsl";
       } else {
         xmlKeys = xmlLongKeys;
         s4 = "J2EEGetList.xsl";
       }
       return J2EEConnection.transform(s3, "templates.applications/" + s4);
     } else {
       return s3;
     }
   } else {
     throw new Exception(com.dragonflow.StandardMonitor.URLMonitor.lookupStatus(al[0]));
   }
 }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix =
          registerPrefix(xmlWriter, "http://services.agent.usage.carbon.wso2.org");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":CustomMeteringServiceException",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "CustomMeteringServiceException",
            xmlWriter);
      }
    }
    if (localCustomMeteringServiceExceptionTracker) {
      if (localCustomMeteringServiceException == null) {

        writeStartElement(
            null,
            "http://services.agent.usage.carbon.wso2.org",
            "CustomMeteringServiceException",
            xmlWriter);

        // write the nil attribute
        writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter);
        xmlWriter.writeEndElement();
      } else {
        localCustomMeteringServiceException.serialize(
            new javax.xml.namespace.QName(
                "http://services.agent.usage.carbon.wso2.org", "CustomMeteringServiceException"),
            xmlWriter);
      }
    }
    xmlWriter.writeEndElement();
  }
Example #19
0
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix =
          registerPrefix(xmlWriter, "http://webservice.auctionhouse.ase.columbia.edu/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":auctionItem",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "auctionItem", xmlWriter);
      }
    }

    if (localItemId != java.lang.Integer.MIN_VALUE) {

      writeAttribute(
          "",
          "itemId",
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItemId),
          xmlWriter);

    } else {
      throw new org.apache.axis2.databinding.ADBException("required attribute localItemId is null");
    }

    if (localItemName != null) {

      writeAttribute(
          "",
          "itemName",
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItemName),
          xmlWriter);
    }

    xmlWriter.writeEndElement();
  }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {
    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {
      java.lang.String namespacePrefix =
          registerPrefix(xmlWriter, "http://pay.service.outwardtps.sysway.com/");

      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":CustomerValidateRequestMsg",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "CustomerValidateRequestMsg",
            xmlWriter);
      }
    }

    if (localRequestHeaderTracker) {
      if (localRequestHeader == null) {
        throw new org.apache.axis2.databinding.ADBException("requestHeader cannot be null!!");
      }

      localRequestHeader.serialize(new javax.xml.namespace.QName("", "requestHeader"), xmlWriter);
    }

    if (localCustomerValidateRequestTracker) {
      if (localCustomerValidateRequest == null) {
        throw new org.apache.axis2.databinding.ADBException(
            "customerValidateRequest cannot be null!!");
      }

      localCustomerValidateRequest.serialize(
          new javax.xml.namespace.QName("", "customerValidateRequest"), xmlWriter);
    }

    xmlWriter.writeEndElement();
  }
Example #21
0
 public void serialize(
     final javax.xml.namespace.QName parentQName,
     javax.xml.stream.XMLStreamWriter xmlWriter,
     boolean serializeType)
     throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {
   java.lang.String prefix = null;
   java.lang.String namespace = null;
   prefix = parentQName.getPrefix();
   namespace = parentQName.getNamespaceURI();
   writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
   if (serializeType) {
     java.lang.String namespacePrefix =
         registerPrefix(xmlWriter, "http://ponge.hr/pfa/axis/env/operations");
     if ((namespacePrefix != null) && ((namespacePrefix.trim().length()) > 0)) {
       writeAttribute(
           "xsi",
           "http://www.w3.org/2001/XMLSchema-instance",
           "type",
           (namespacePrefix + ":UpdateUserResp"),
           xmlWriter);
     } else {
       writeAttribute(
           "xsi",
           "http://www.w3.org/2001/XMLSchema-instance",
           "type",
           "UpdateUserResp",
           xmlWriter);
     }
   }
   if (localUserTracker) {
     if ((localUser) == null) {
       throw new org.apache.axis2.databinding.ADBException("user cannot be null!!");
     }
     localUser.serialize(
         new javax.xml.namespace.QName("http://ponge.hr/pfa/axis/env/operations", "user"),
         xmlWriter);
   }
   if (localErrorsTracker) {
     if ((localErrors) != null) {
       for (int i = 0; i < (localErrors.length); i++) {
         if ((localErrors[i]) != null) {
           localErrors[i].serialize(
               new javax.xml.namespace.QName("http://ponge.hr/pfa/axis/env/operations", "errors"),
               xmlWriter);
         } else {
         }
       }
     } else {
       throw new org.apache.axis2.databinding.ADBException("errors cannot be null!!");
     }
   }
   xmlWriter.writeEndElement();
 }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {
    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {
      java.lang.String namespacePrefix = registerPrefix(xmlWriter, "http://base.rpc.cs.ucsb.edu");

      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":echoArrayResponse",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "echoArrayResponse",
            xmlWriter);
      }
    }

    if (local_return != null) {
      namespace = "http://base.rpc.cs.ucsb.edu";

      for (int i = 0; i < local_return.length; i++) {
        if (local_return[i] != java.lang.Integer.MIN_VALUE) {
          writeStartElement(null, namespace, "return", xmlWriter);

          xmlWriter.writeCharacters(
              org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return[i]));
          xmlWriter.writeEndElement();
        } else {
          throw new org.apache.axis2.databinding.ADBException("return cannot be null!!");
        }
      }
    } else {
      throw new org.apache.axis2.databinding.ADBException("return cannot be null!!");
    }

    xmlWriter.writeEndElement();
  }
Example #23
0
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix = registerPrefix(xmlWriter, "http://api.zuora.com/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":executeResponse",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "executeResponse",
            xmlWriter);
      }
    }
    if (localResultTracker) {
      if (localResult != null) {
        for (int i = 0; i < localResult.length; i++) {
          if (localResult[i] != null) {
            localResult[i].serialize(
                new javax.xml.namespace.QName("http://api.zuora.com/", "result"), xmlWriter);
          } else {

            // we don't have to do any thing since minOccures is
            // zero

          }
        }
      } else {

        throw new org.apache.axis2.databinding.ADBException("result cannot be null!!");
      }
    }
    xmlWriter.writeEndElement();
  }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:partner.soap.sforce.com");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":DescribeSoqlListViewResult",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "DescribeSoqlListViewResult",
            xmlWriter);
      }
    }

    if (localDescribeSoqlListViews != null) {
      for (int i = 0; i < localDescribeSoqlListViews.length; i++) {
        if (localDescribeSoqlListViews[i] != null) {
          localDescribeSoqlListViews[i].serialize(
              new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "describeSoqlListViews"),
              xmlWriter);
        } else {

          throw new org.apache.axis2.databinding.ADBException(
              "describeSoqlListViews cannot be null!!");
        }
      }
    } else {

      throw new org.apache.axis2.databinding.ADBException("describeSoqlListViews cannot be null!!");
    }

    xmlWriter.writeEndElement();
  }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix =
          registerPrefix(xmlWriter, "http://service.mgt.repository.svn.appfactory.carbon.wso2.org");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":createRepository",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "createRepository",
            xmlWriter);
      }
    }
    if (localApplicationKeyTracker) {
      namespace = "http://service.mgt.repository.svn.appfactory.carbon.wso2.org";
      writeStartElement(null, namespace, "applicationKey", xmlWriter);

      if (localApplicationKey == null) {
        // write the nil attribute

        writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter);

      } else {

        xmlWriter.writeCharacters(localApplicationKey);
      }

      xmlWriter.writeEndElement();
    }
    xmlWriter.writeEndElement();
  }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix =
          registerPrefix(xmlWriter, "http://soap_v2_2.ws.grouper.middleware.internet2.edu/xsd");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":getGroupsLiteResponse",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "getGroupsLiteResponse",
            xmlWriter);
      }
    }
    if (local_returnTracker) {
      if (local_return == null) {

        writeStartElement(
            null, "http://soap_v2_2.ws.grouper.middleware.internet2.edu/xsd", "return", xmlWriter);

        // write the nil attribute
        writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter);
        xmlWriter.writeEndElement();
      } else {
        local_return.serialize(
            new javax.xml.namespace.QName(
                "http://soap_v2_2.ws.grouper.middleware.internet2.edu/xsd", "return"),
            xmlWriter);
      }
    }
    xmlWriter.writeEndElement();
  }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix =
          registerPrefix(xmlWriter, "http://www.example.org/CallbackReceive/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":onCallbackResponse",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "onCallbackResponse",
            xmlWriter);
      }
    }

    namespace = "";
    writeStartElement(null, namespace, "out", xmlWriter);

    if (localOut == null) {
      // write the nil attribute

      throw new org.apache.axis2.databinding.ADBException("out cannot be null!!");

    } else {

      xmlWriter.writeCharacters(localOut);
    }

    xmlWriter.writeEndElement();

    xmlWriter.writeEndElement();
  }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix = registerPrefix(xmlWriter, "http://org.apache.axis2/xsd");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":verifyResponse",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "verifyResponse",
            xmlWriter);
      }
    }
    if (local_returnTracker) {
      namespace = "http://org.apache.axis2/xsd";
      writeStartElement(null, namespace, "return", xmlWriter);

      if (local_return == null) {
        // write the nil attribute

        writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter);

      } else {

        xmlWriter.writeCharacters(local_return);
      }

      xmlWriter.writeEndElement();
    }
    xmlWriter.writeEndElement();
  }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix =
          registerPrefix(xmlWriter, "http://installer.sample.carbon.wso2.org");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":uploadSampleResponse",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "uploadSampleResponse",
            xmlWriter);
      }
    }
    if (local_returnTracker) {
      namespace = "http://installer.sample.carbon.wso2.org";
      writeStartElement(null, namespace, "return", xmlWriter);

      if (false) {

        throw new org.apache.axis2.databinding.ADBException("return cannot be null!!");

      } else {
        xmlWriter.writeCharacters(
            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));
      }

      xmlWriter.writeEndElement();
    }
    xmlWriter.writeEndElement();
  }
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

    java.lang.String prefix = null;
    java.lang.String namespace = null;

    prefix = parentQName.getPrefix();
    namespace = parentQName.getNamespaceURI();
    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);

    if (serializeType) {

      java.lang.String namespacePrefix = registerPrefix(xmlWriter, "http://bam.carbon.wso2.org");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":getLatestAverageResponseTimeForOperation",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "getLatestAverageResponseTimeForOperation",
            xmlWriter);
      }
    }

    namespace = "http://bam.carbon.wso2.org";
    writeStartElement(null, namespace, "operationID", xmlWriter);

    if (localOperationID == java.lang.Integer.MIN_VALUE) {

      writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter);

    } else {
      xmlWriter.writeCharacters(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOperationID));
    }

    xmlWriter.writeEndElement();

    xmlWriter.writeEndElement();
  }