示例#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();
  }
示例#2
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,
      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 {

    // 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();
  }
  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();
  }
  @Override
  public void serialize(
      final QName parentQName,
      final OMFactory factory,
      final MTOMAwareXMLStreamWriter xmlWriter,
      final boolean serializeType)
      throws XMLStreamException, ADBException {
    final String namespace = parentQName.getNamespaceURI();
    final String localName = parentQName.getLocalPart();

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

      if (prefix == null) {
        prefix = RigStateType.generatePrefix(namespace);
        xmlWriter.writeStartElement(prefix, localName, namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);
      } else {
        xmlWriter.writeStartElement(namespace, localName);
      }
    } else {
      xmlWriter.writeStartElement(localName);
    }

    if (serializeType) {
      final String namespacePrefix =
          this.registerPrefix(xmlWriter, "http://remotelabs.eng.uts.edu.au/rigmanagement");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        this.writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":RigStateType",
            xmlWriter);
      } else {
        this.writeAttribute(
            "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "RigStateType", xmlWriter);
      }
    }

    if (this.rigStateType == null) {
      throw new ADBException("Value cannot be null !!");
    } else {
      xmlWriter.writeCharacters(this.rigStateType);
    }

    xmlWriter.writeEndElement();
  }
示例#7
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)
      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);
    }

    if (localStatusType == null) {

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

    } else {

      xmlWriter.writeCharacters(localStatusType);
    }

    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 {

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

    if (localHistoryInfo == null) {
      java.lang.String namespace = "http://api.eyeblaster.com/V1/DataContracts";

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

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

          xmlWriter.writeStartElement(prefix, "HistoryInfo", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "HistoryInfo");
        }

      } else {
        xmlWriter.writeStartElement("HistoryInfo");
      }

      // write the nil attribute
      writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter);
      xmlWriter.writeEndElement();
    } else {
      localHistoryInfo.serialize(MY_QNAME, factory, xmlWriter);
    }
  }
示例#9
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://ec2.amazonaws.com/doc/2010-11-15/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":VpcIdSetType",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "VpcIdSetType", xmlWriter);
      }
    }
    if (localItemTracker) {
      if (localItem != null) {
        for (int i = 0; i < localItem.length; i++) {
          if (localItem[i] != null) {
            localItem[i].serialize(
                new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/", "item"),
                factory,
                xmlWriter);
          } else {

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

          }
        }
      } else {

        throw new org.apache.axis2.databinding.ADBException("item cannot be null!!");
      }
    }
    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/2012-08-15/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":DescribeAvailabilityZonesType",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "DescribeAvailabilityZonesType",
            xmlWriter);
      }
    }

    if (localAvailabilityZoneSet == null) {
      throw new org.apache.axis2.databinding.ADBException("availabilityZoneSet cannot be null!!");
    }
    localAvailabilityZoneSet.serialize(
        new javax.xml.namespace.QName(
            "http://ec2.amazonaws.com/doc/2012-08-15/", "availabilityZoneSet"),
        factory,
        xmlWriter);
    if (localFilterSetTracker) {
      if (localFilterSet == null) {
        throw new org.apache.axis2.databinding.ADBException("filterSet cannot be null!!");
      }
      localFilterSet.serialize(
          new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/", "filterSet"),
          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://www.docusign.net/API/3.0");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":IDCheckInformationInput",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "IDCheckInformationInput",
            xmlWriter);
      }
    }
    if (localAddressInformationInputTracker) {
      if (localAddressInformationInput == null) {
        throw new org.apache.axis2.databinding.ADBException(
            "AddressInformationInput cannot be null!!");
      }
      localAddressInformationInput.serialize(
          new javax.xml.namespace.QName(
              "http://www.docusign.net/API/3.0", "AddressInformationInput"),
          factory,
          xmlWriter);
    }
    if (localDOBInformationInputTracker) {
      if (localDOBInformationInput == null) {
        throw new org.apache.axis2.databinding.ADBException("DOBInformationInput cannot be null!!");
      }
      localDOBInformationInput.serialize(
          new javax.xml.namespace.QName("http://www.docusign.net/API/3.0", "DOBInformationInput"),
          factory,
          xmlWriter);
    }
    if (localSSN4InformationInputTracker) {
      if (localSSN4InformationInput == null) {
        throw new org.apache.axis2.databinding.ADBException(
            "SSN4InformationInput cannot be null!!");
      }
      localSSN4InformationInput.serialize(
          new javax.xml.namespace.QName("http://www.docusign.net/API/3.0", "SSN4InformationInput"),
          factory,
          xmlWriter);
    }
    if (localSSN9InformationInputTracker) {
      if (localSSN9InformationInput == null) {
        throw new org.apache.axis2.databinding.ADBException(
            "SSN9InformationInput cannot be null!!");
      }
      localSSN9InformationInput.serialize(
          new javax.xml.namespace.QName("http://www.docusign.net/API/3.0", "SSN9InformationInput"),
          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://acrl.cis.fiu.edu/virtuallabs/ws");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":DelUserProfileResponse",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "DelUserProfileResponse",
            xmlWriter);
      }
    }

    namespace = "http://acrl.cis.fiu.edu/virtuallabs/ws";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "success", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "success");
      }

    } else {
      xmlWriter.writeStartElement("success");
    }

    if (false) {

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

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

    xmlWriter.writeEndElement();

    namespace = "http://acrl.cis.fiu.edu/virtuallabs/ws";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "reason", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "reason");
      }

    } else {
      xmlWriter.writeStartElement("reason");
    }

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

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

    } else {

      xmlWriter.writeCharacters(localReason);
    }

    xmlWriter.writeEndElement();

    xmlWriter.writeEndElement();
  }
示例#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 {

    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://gateway.airtime.mbv.com");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":LockAccountInfo",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "LockAccountInfo",
            xmlWriter);
      }
    }

    namespace = "http://gateway.airtime.mbv.com";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "systemId", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "systemId");
      }

    } else {
      xmlWriter.writeStartElement("systemId");
    }

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

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

    } else {

      xmlWriter.writeCharacters(localSystemId);
    }

    xmlWriter.writeEndElement();

    namespace = "http://gateway.airtime.mbv.com";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "accountId", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "accountId");
      }

    } else {
      xmlWriter.writeStartElement("accountId");
    }

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

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

    } else {

      xmlWriter.writeCharacters(localAccountId);
    }

    xmlWriter.writeEndElement();

    namespace = "http://gateway.airtime.mbv.com";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "totalDebit", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "totalDebit");
      }

    } else {
      xmlWriter.writeStartElement("totalDebit");
    }

    if (localTotalDebit == java.lang.Long.MIN_VALUE) {

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

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

    xmlWriter.writeEndElement();

    namespace = "http://gateway.airtime.mbv.com";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "totalCredit", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "totalCredit");
      }

    } else {
      xmlWriter.writeStartElement("totalCredit");
    }

    if (localTotalCredit == java.lang.Long.MIN_VALUE) {

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

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

    xmlWriter.writeEndElement();

    namespace = "http://gateway.airtime.mbv.com";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "telcoIds", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "telcoIds");
      }

    } else {
      xmlWriter.writeStartElement("telcoIds");
    }

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

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

    } else {

      xmlWriter.writeCharacters(localTelcoIds);
    }

    xmlWriter.writeEndElement();

    namespace = "http://gateway.airtime.mbv.com";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "description", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "description");
      }

    } else {
      xmlWriter.writeStartElement("description");
    }

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

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

    } else {

      xmlWriter.writeCharacters(localDescription);
    }

    xmlWriter.writeEndElement();

    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;

    if (serializeType) {

      java.lang.String namespacePrefix =
          registerPrefix(xmlWriter, "http://ec2.amazonaws.com/doc/2012-08-15/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":ReleaseAddressTypeChoice_type0",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "ReleaseAddressTypeChoice_type0",
            xmlWriter);
      }
    }
    if (localPublicIpTracker) {
      namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "publicIp", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "publicIp");
        }

      } else {
        xmlWriter.writeStartElement("publicIp");
      }

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

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

      } else {

        xmlWriter.writeCharacters(localPublicIp);
      }

      xmlWriter.writeEndElement();
    }
    if (localAllocationIdTracker) {
      namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "allocationId", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "allocationId");
        }

      } else {
        xmlWriter.writeStartElement("allocationId");
      }

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

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

      } else {

        xmlWriter.writeCharacters(localAllocationId);
      }

      xmlWriter.writeEndElement();
    }
  }
示例#15
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.microsoft.com/sharepoint/soap/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":AddList",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "AddList", xmlWriter);
      }
    }

    namespace = "http://schemas.microsoft.com/sharepoint/soap/";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "listName", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "listName");
      }

    } else {
      xmlWriter.writeStartElement("listName");
    }

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

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

    } else {

      xmlWriter.writeCharacters(localListName);
    }

    xmlWriter.writeEndElement();
    if (localDescriptionTracker) {
      namespace = "http://schemas.microsoft.com/sharepoint/soap/";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "description", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "description");
        }

      } else {
        xmlWriter.writeStartElement("description");
      }

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

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

      } else {

        xmlWriter.writeCharacters(localDescription);
      }

      xmlWriter.writeEndElement();
    }
    namespace = "http://schemas.microsoft.com/sharepoint/soap/";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "templateID", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "templateID");
      }

    } else {
      xmlWriter.writeStartElement("templateID");
    }

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

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

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

    xmlWriter.writeEndElement();

    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://microstrategy.com/webservices/v1_0");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":GetHierarchyAttributesResponse",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "GetHierarchyAttributesResponse",
            xmlWriter);
      }
    }
    if (localGetHierarchyAttributesResultTracker) {
      if (localGetHierarchyAttributesResult == null) {
        throw new org.apache.axis2.databinding.ADBException(
            "GetHierarchyAttributesResult cannot be null!!");
      }
      localGetHierarchyAttributesResult.serialize(
          new javax.xml.namespace.QName(
              "http://microstrategy.com/webservices/v1_0", "GetHierarchyAttributesResult"),
          factory,
          xmlWriter);
    }
    xmlWriter.writeEndElement();
  }
示例#17
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://microstrategy.com/webservices/v1_0");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":MWSResultsSizeInfo",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "MWSResultsSizeInfo",
            xmlWriter);
      }
    }

    namespace = "http://microstrategy.com/webservices/v1_0";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "MaxRows", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "MaxRows");
      }

    } else {
      xmlWriter.writeStartElement("MaxRows");
    }

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

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

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

    xmlWriter.writeEndElement();

    namespace = "http://microstrategy.com/webservices/v1_0";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "MaxCols", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "MaxCols");
      }

    } else {
      xmlWriter.writeStartElement("MaxCols");
    }

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

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

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

    xmlWriter.writeEndElement();

    namespace = "http://microstrategy.com/webservices/v1_0";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "StartRow", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "StartRow");
      }

    } else {
      xmlWriter.writeStartElement("StartRow");
    }

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

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

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

    xmlWriter.writeEndElement();

    namespace = "http://microstrategy.com/webservices/v1_0";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "StartCol", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "StartCol");
      }

    } else {
      xmlWriter.writeStartElement("StartCol");
    }

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

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

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

    xmlWriter.writeEndElement();

    namespace = "http://microstrategy.com/webservices/v1_0";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "TotalRows", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "TotalRows");
      }

    } else {
      xmlWriter.writeStartElement("TotalRows");
    }

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

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

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

    xmlWriter.writeEndElement();

    namespace = "http://microstrategy.com/webservices/v1_0";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "TotalCols", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "TotalCols");
      }

    } else {
      xmlWriter.writeStartElement("TotalCols");
    }

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

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

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

    xmlWriter.writeEndElement();
    if (localPageByInfoTracker) {
      if (localPageByInfo == null) {
        throw new org.apache.axis2.databinding.ADBException("PageByInfo cannot be null!!");
      }
      localPageByInfo.serialize(
          new javax.xml.namespace.QName("http://microstrategy.com/webservices/v1_0", "PageByInfo"),
          factory,
          xmlWriter);
    }
    xmlWriter.writeEndElement();
  }
示例#18
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://s3.amazonaws.com/doc/2006-03-01/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":GetBucketLoggingStatus",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "GetBucketLoggingStatus",
            xmlWriter);
      }
    }

    namespace = "http://s3.amazonaws.com/doc/2006-03-01/";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "Bucket", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "Bucket");
      }

    } else {
      xmlWriter.writeStartElement("Bucket");
    }

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

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

    } else {

      xmlWriter.writeCharacters(localBucket);
    }

    xmlWriter.writeEndElement();
    if (localAWSAccessKeyIdTracker) {
      namespace = "http://s3.amazonaws.com/doc/2006-03-01/";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "AWSAccessKeyId", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "AWSAccessKeyId");
        }

      } else {
        xmlWriter.writeStartElement("AWSAccessKeyId");
      }

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

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

      } else {

        xmlWriter.writeCharacters(localAWSAccessKeyId);
      }

      xmlWriter.writeEndElement();
    }
    if (localTimestampTracker) {
      namespace = "http://s3.amazonaws.com/doc/2006-03-01/";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "Timestamp", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "Timestamp");
        }

      } else {
        xmlWriter.writeStartElement("Timestamp");
      }

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

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

      } else {

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

      xmlWriter.writeEndElement();
    }
    if (localSignatureTracker) {
      namespace = "http://s3.amazonaws.com/doc/2006-03-01/";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "Signature", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "Signature");
        }

      } else {
        xmlWriter.writeStartElement("Signature");
      }

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

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

      } else {

        xmlWriter.writeCharacters(localSignature);
      }

      xmlWriter.writeEndElement();
    }
    if (localCredentialTracker) {
      namespace = "http://s3.amazonaws.com/doc/2006-03-01/";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "Credential", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "Credential");
        }

      } else {
        xmlWriter.writeStartElement("Credential");
      }

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

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

      } else {

        xmlWriter.writeCharacters(localCredential);
      }

      xmlWriter.writeEndElement();
    }
    xmlWriter.writeEndElement();
  }
示例#19
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://virtuallabs.acrl.cis.fiu.edu");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":Appointment",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Appointment", xmlWriter);
      }
    }
    if (localIdTracker) {
      namespace = "http://virtuallabs.acrl.cis.fiu.edu";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "id", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "id");
        }

      } else {
        xmlWriter.writeStartElement("id");
      }

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

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

      } else {

        xmlWriter.writeCharacters(localId);
      }

      xmlWriter.writeEndElement();
    }
    if (localUserNameTracker) {
      namespace = "http://virtuallabs.acrl.cis.fiu.edu";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "userName", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "userName");
        }

      } else {
        xmlWriter.writeStartElement("userName");
      }

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

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

      } else {

        xmlWriter.writeCharacters(localUserName);
      }

      xmlWriter.writeEndElement();
    }
    namespace = "http://virtuallabs.acrl.cis.fiu.edu";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "start", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "start");
      }

    } else {
      xmlWriter.writeStartElement("start");
    }

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

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

    } else {

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

    xmlWriter.writeEndElement();

    namespace = "http://virtuallabs.acrl.cis.fiu.edu";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "end", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "end");
      }

    } else {
      xmlWriter.writeStartElement("end");
    }

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

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

    } else {

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

    xmlWriter.writeEndElement();

    namespace = "http://virtuallabs.acrl.cis.fiu.edu";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "resourceType", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "resourceType");
      }

    } else {
      xmlWriter.writeStartElement("resourceType");
    }

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

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

    } else {

      xmlWriter.writeCharacters(localResourceType);
    }

    xmlWriter.writeEndElement();
    if (localCourseTracker) {
      namespace = "http://virtuallabs.acrl.cis.fiu.edu";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "course", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "course");
        }

      } else {
        xmlWriter.writeStartElement("course");
      }

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

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

      } else {

        xmlWriter.writeCharacters(localCourse);
      }

      xmlWriter.writeEndElement();
    }
    if (localAffiliationIdTracker) {
      namespace = "http://virtuallabs.acrl.cis.fiu.edu";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "affiliationId", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "affiliationId");
        }

      } else {
        xmlWriter.writeStartElement("affiliationId");
      }

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

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

      } else {

        xmlWriter.writeCharacters(localAffiliationId);
      }

      xmlWriter.writeEndElement();
    }
    namespace = "http://virtuallabs.acrl.cis.fiu.edu";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "availabilityStatus", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "availabilityStatus");
      }

    } else {
      xmlWriter.writeStartElement("availabilityStatus");
    }

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

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

    } else {

      xmlWriter.writeCharacters(localAvailabilityStatus);
    }

    xmlWriter.writeEndElement();
    if (localActionTracker) {
      if (localAction != null) {
        for (int i = 0; i < localAction.length; i++) {
          if (localAction[i] != null) {
            localAction[i].serialize(
                new javax.xml.namespace.QName("http://virtuallabs.acrl.cis.fiu.edu", "action"),
                factory,
                xmlWriter);
          } else {

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

          }
        }
      } else {

        throw new org.apache.axis2.databinding.ADBException("action cannot be null!!");
      }
    }
    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://api.eyeblaster.com/message");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":DeleteAdsResponse",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "DeleteAdsResponse",
            xmlWriter);
      }
    }
    if (localBatchActionErrorsTracker) {
      if (localBatchActionErrors == null) {

        java.lang.String namespace2 = "http://api.eyeblaster.com/message";

        if (!namespace2.equals("")) {
          java.lang.String prefix2 = xmlWriter.getPrefix(namespace2);

          if (prefix2 == null) {
            prefix2 = generatePrefix(namespace2);

            xmlWriter.writeStartElement(prefix2, "BatchActionErrors", namespace2);
            xmlWriter.writeNamespace(prefix2, namespace2);
            xmlWriter.setPrefix(prefix2, namespace2);

          } else {
            xmlWriter.writeStartElement(namespace2, "BatchActionErrors");
          }

        } else {
          xmlWriter.writeStartElement("BatchActionErrors");
        }

        // write the nil attribute
        writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter);
        xmlWriter.writeEndElement();
      } else {
        localBatchActionErrors.serialize(
            new javax.xml.namespace.QName("http://api.eyeblaster.com/message", "BatchActionErrors"),
            factory,
            xmlWriter);
      }
    }
    if (localTotalCountTracker) {
      namespace = "http://api.eyeblaster.com/message";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "TotalCount", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "TotalCount");
        }

      } else {
        xmlWriter.writeStartElement("TotalCount");
      }

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

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

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

      xmlWriter.writeEndElement();
    }
    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/2012-08-15/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":AssociateAddressType",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "AssociateAddressType",
            xmlWriter);
      }
    }

    if (localAssociateAddressTypeChoice_type0 == null) {
      throw new org.apache.axis2.databinding.ADBException(
          "AssociateAddressTypeChoice_type0 cannot be null!!");
    }
    localAssociateAddressTypeChoice_type0.serialize(null, factory, xmlWriter);

    if (localAssociateAddressTypeChoice_type1 == null) {
      throw new org.apache.axis2.databinding.ADBException(
          "AssociateAddressTypeChoice_type1 cannot be null!!");
    }
    localAssociateAddressTypeChoice_type1.serialize(null, factory, xmlWriter);
    if (localPrivateIpAddressTracker) {
      namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "privateIpAddress", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "privateIpAddress");
        }

      } else {
        xmlWriter.writeStartElement("privateIpAddress");
      }

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

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

      } else {

        xmlWriter.writeCharacters(localPrivateIpAddress);
      }

      xmlWriter.writeEndElement();
    }
    if (localAllowReassociationTracker) {
      namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "allowReassociation", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "allowReassociation");
        }

      } else {
        xmlWriter.writeStartElement("allowReassociation");
      }

      if (false) {

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

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

      xmlWriter.writeEndElement();
    }
    xmlWriter.writeEndElement();
  }
示例#22
0
  @Override
  public void serialize(
      final QName parentQName,
      final OMFactory factory,
      final MTOMAwareXMLStreamWriter xmlWriter,
      final boolean serializeType)
      throws XMLStreamException, ADBException {
    String prefix = parentQName.getPrefix();
    String namespace = parentQName.getNamespaceURI();

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

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

    final String namespacePrefix =
        this.registerPrefix(
            xmlWriter, "http://remotelabs.eng.uts.edu.au/schedserver/localrigprovider");
    if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
      this.writeAttribute(
          "xsi",
          "http://www.w3.org/2001/XMLSchema-instance",
          "type",
          namespacePrefix + ":SessionFiles",
          xmlWriter);
    } else {
      this.writeAttribute(
          "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "SessionFiles", xmlWriter);
    }

    xmlWriter.writeStartElement("name");
    if (this.name == null) {
      throw new ADBException("name cannot be null!!");
    } else {
      xmlWriter.writeCharacters(this.name);
    }

    xmlWriter.writeEndElement();
    if (this.files != null) {
      for (final SessionFile localFile : this.files) {
        if (localFile != null) {
          localFile.serialize(new QName("", "files"), factory, xmlWriter);
        } else {
          throw new ADBException("files cannot be null!!");
        }
      }
    } else {
      throw new ADBException("files cannot be null!!");
    }

    xmlWriter.writeStartElement("user");
    if (this.user == null) {
      throw new ADBException("user cannot be null!!");
    } else {
      xmlWriter.writeCharacters(this.user);
    }
    xmlWriter.writeEndElement();

    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/2010-06-15/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":AvailabilityZoneMessageType",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "AvailabilityZoneMessageType",
            xmlWriter);
      }
    }

    namespace = "http://ec2.amazonaws.com/doc/2010-06-15/";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "message", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "message");
      }

    } else {
      xmlWriter.writeStartElement("message");
    }

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

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

    } else {

      xmlWriter.writeCharacters(localMessage);
    }

    xmlWriter.writeEndElement();

    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://api.eyeblaster.com/message");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":SetMediaMindMatchingSiteRequest",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "SetMediaMindMatchingSiteRequest",
            xmlWriter);
      }
    }
    if (localExternalSiteNameTracker) {
      namespace = "http://api.eyeblaster.com/message";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "ExternalSiteName", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "ExternalSiteName");
        }

      } else {
        xmlWriter.writeStartElement("ExternalSiteName");
      }

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

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

      } else {

        xmlWriter.writeCharacters(localExternalSiteName);
      }

      xmlWriter.writeEndElement();
    }
    if (localMediaMindSiteNameTracker) {
      namespace = "http://api.eyeblaster.com/message";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "MediaMindSiteName", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "MediaMindSiteName");
        }

      } else {
        xmlWriter.writeStartElement("MediaMindSiteName");
      }

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

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

      } else {

        xmlWriter.writeCharacters(localMediaMindSiteName);
      }

      xmlWriter.writeEndElement();
    }
    xmlWriter.writeEndElement();
  }
示例#25
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://tempuri.org/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":BasicSensorData",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "BasicSensorData",
            xmlWriter);
      }
    }

    namespace = "http://tempuri.org/";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "SensorType", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "SensorType");
      }

    } else {
      xmlWriter.writeStartElement("SensorType");
    }

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

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

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

    xmlWriter.writeEndElement();

    namespace = "http://tempuri.org/";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "DataType", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "DataType");
      }

    } else {
      xmlWriter.writeStartElement("DataType");
    }

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

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

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

    xmlWriter.writeEndElement();
    if (localTimestampsTracker) {
      if (localTimestamps == null) {
        throw new org.apache.axis2.databinding.ADBException("Timestamps cannot be null!!");
      }
      localTimestamps.serialize(
          new javax.xml.namespace.QName("http://tempuri.org/", "Timestamps"), 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://authentication.services.core.carbon.wso2.org");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":loginWithDelegationResponse",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "loginWithDelegationResponse",
            xmlWriter);
      }
    }
    if (local_returnTracker) {
      namespace = "http://authentication.services.core.carbon.wso2.org";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "return", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "return");
        }

      } else {
        xmlWriter.writeStartElement("return");
      }

      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();
  }
示例#27
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://services.resource.registry.carbon.wso2.org");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":getMetadataResponse",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "getMetadataResponse",
            xmlWriter);
      }
    }
    if (local_returnTracker) {
      if (local_return == null) {

        java.lang.String namespace2 = "http://services.resource.registry.carbon.wso2.org";

        if (!namespace2.equals("")) {
          java.lang.String prefix2 = xmlWriter.getPrefix(namespace2);

          if (prefix2 == null) {
            prefix2 = generatePrefix(namespace2);

            xmlWriter.writeStartElement(prefix2, "return", namespace2);
            xmlWriter.writeNamespace(prefix2, namespace2);
            xmlWriter.setPrefix(prefix2, namespace2);

          } else {
            xmlWriter.writeStartElement(namespace2, "return");
          }

        } else {
          xmlWriter.writeStartElement("return");
        }

        // 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://services.resource.registry.carbon.wso2.org", "return"),
            factory,
            xmlWriter);
      }
    }
    xmlWriter.writeEndElement();
  }
示例#28
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://s3.amazonaws.com/doc/2006-03-01/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":PutObject",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "PutObject", xmlWriter);
      }
    }

    namespace = "http://s3.amazonaws.com/doc/2006-03-01/";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "Bucket", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "Bucket");
      }

    } else {
      xmlWriter.writeStartElement("Bucket");
    }

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

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

    } else {

      xmlWriter.writeCharacters(localBucket);
    }

    xmlWriter.writeEndElement();

    namespace = "http://s3.amazonaws.com/doc/2006-03-01/";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "Key", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "Key");
      }

    } else {
      xmlWriter.writeStartElement("Key");
    }

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

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

    } else {

      xmlWriter.writeCharacters(localKey);
    }

    xmlWriter.writeEndElement();
    if (localMetadataTracker) {
      if (localMetadata != null) {
        for (int i = 0; i < localMetadata.length; i++) {
          if (localMetadata[i] != null) {
            localMetadata[i].serialize(
                new javax.xml.namespace.QName(
                    "http://s3.amazonaws.com/doc/2006-03-01/", "Metadata"),
                factory,
                xmlWriter);
          } else {

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

          }
        }
      } else {

        throw new org.apache.axis2.databinding.ADBException("Metadata cannot be null!!");
      }
    }
    namespace = "http://s3.amazonaws.com/doc/2006-03-01/";
    if (!namespace.equals("")) {
      prefix = xmlWriter.getPrefix(namespace);

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

        xmlWriter.writeStartElement(prefix, "ContentLength", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "ContentLength");
      }

    } else {
      xmlWriter.writeStartElement("ContentLength");
    }

    if (localContentLength == java.lang.Long.MIN_VALUE) {

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

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

    xmlWriter.writeEndElement();
    if (localAccessControlListTracker) {
      if (localAccessControlList == null) {
        throw new org.apache.axis2.databinding.ADBException("AccessControlList cannot be null!!");
      }
      localAccessControlList.serialize(
          new javax.xml.namespace.QName(
              "http://s3.amazonaws.com/doc/2006-03-01/", "AccessControlList"),
          factory,
          xmlWriter);
    }
    if (localStorageClassTracker) {
      if (localStorageClass == null) {
        throw new org.apache.axis2.databinding.ADBException("StorageClass cannot be null!!");
      }
      localStorageClass.serialize(
          new javax.xml.namespace.QName("http://s3.amazonaws.com/doc/2006-03-01/", "StorageClass"),
          factory,
          xmlWriter);
    }
    if (localAWSAccessKeyIdTracker) {
      namespace = "http://s3.amazonaws.com/doc/2006-03-01/";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "AWSAccessKeyId", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "AWSAccessKeyId");
        }

      } else {
        xmlWriter.writeStartElement("AWSAccessKeyId");
      }

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

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

      } else {

        xmlWriter.writeCharacters(localAWSAccessKeyId);
      }

      xmlWriter.writeEndElement();
    }
    if (localTimestampTracker) {
      namespace = "http://s3.amazonaws.com/doc/2006-03-01/";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "Timestamp", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "Timestamp");
        }

      } else {
        xmlWriter.writeStartElement("Timestamp");
      }

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

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

      } else {

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

      xmlWriter.writeEndElement();
    }
    if (localSignatureTracker) {
      namespace = "http://s3.amazonaws.com/doc/2006-03-01/";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "Signature", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "Signature");
        }

      } else {
        xmlWriter.writeStartElement("Signature");
      }

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

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

      } else {

        xmlWriter.writeCharacters(localSignature);
      }

      xmlWriter.writeEndElement();
    }
    if (localCredentialTracker) {
      namespace = "http://s3.amazonaws.com/doc/2006-03-01/";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "Credential", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "Credential");
        }

      } else {
        xmlWriter.writeStartElement("Credential");
      }

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

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

      } else {

        xmlWriter.writeCharacters(localCredential);
      }

      xmlWriter.writeEndElement();
    }
    xmlWriter.writeEndElement();
  }
示例#29
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://paymentgateway.payment.zingme.vng/");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":XGetUserOutput",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            "XGetUserOutput",
            xmlWriter);
      }
    }

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

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

        xmlWriter.writeStartElement(prefix, "code", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "code");
      }

    } else {
      xmlWriter.writeStartElement("code");
    }

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

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

    } else {

      xmlWriter.writeCharacters(localCode);
    }

    xmlWriter.writeEndElement();

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

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

        xmlWriter.writeStartElement(prefix, "userID", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "userID");
      }

    } else {
      xmlWriter.writeStartElement("userID");
    }

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

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

    } else {

      xmlWriter.writeCharacters(localUserID);
    }

    xmlWriter.writeEndElement();

    xmlWriter.writeEndElement();
  }
示例#30
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://www.csapi.org/schema/parlayx/sms/v2_2");
      if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) {
        writeAttribute(
            "xsi",
            "http://www.w3.org/2001/XMLSchema-instance",
            "type",
            namespacePrefix + ":SmsMessage",
            xmlWriter);
      } else {
        writeAttribute(
            "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "SmsMessage", xmlWriter);
      }
    }

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

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

        xmlWriter.writeStartElement(prefix, "message", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "message");
      }

    } else {
      xmlWriter.writeStartElement("message");
    }

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

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

    } else {

      xmlWriter.writeCharacters(localMessage);
    }

    xmlWriter.writeEndElement();

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

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

        xmlWriter.writeStartElement(prefix, "senderAddress", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "senderAddress");
      }

    } else {
      xmlWriter.writeStartElement("senderAddress");
    }

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

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

    } else {

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

    xmlWriter.writeEndElement();

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

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

        xmlWriter.writeStartElement(prefix, "smsServiceActivationNumber", namespace);
        xmlWriter.writeNamespace(prefix, namespace);
        xmlWriter.setPrefix(prefix, namespace);

      } else {
        xmlWriter.writeStartElement(namespace, "smsServiceActivationNumber");
      }

    } else {
      xmlWriter.writeStartElement("smsServiceActivationNumber");
    }

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

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

    } else {

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

    xmlWriter.writeEndElement();
    if (localDateTimeTracker) {
      namespace = "";
      if (!namespace.equals("")) {
        prefix = xmlWriter.getPrefix(namespace);

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

          xmlWriter.writeStartElement(prefix, "dateTime", namespace);
          xmlWriter.writeNamespace(prefix, namespace);
          xmlWriter.setPrefix(prefix, namespace);

        } else {
          xmlWriter.writeStartElement(namespace, "dateTime");
        }

      } else {
        xmlWriter.writeStartElement("dateTime");
      }

      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();
    }
    xmlWriter.writeEndElement();
  }