/** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    if (localPublicIpTracker) {
      elementList.add(
          new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/", "publicIp"));

      if (localPublicIp != null) {
        elementList.add(
            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPublicIp));
      } else {
        throw new org.apache.axis2.databinding.ADBException("publicIp cannot be null!!");
      }
    }
    if (localAllocationIdTracker) {
      elementList.add(
          new javax.xml.namespace.QName(
              "http://ec2.amazonaws.com/doc/2012-08-15/", "allocationId"));

      if (localAllocationId != null) {
        elementList.add(
            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllocationId));
      } else {
        throw new org.apache.axis2.databinding.ADBException("allocationId cannot be null!!");
      }
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    elementList.add(
        new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/", "keyName"));

    if (localKeyName != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localKeyName));
    } else {
      throw new org.apache.axis2.databinding.ADBException("keyName cannot be null!!");
    }

    elementList.add(
        new javax.xml.namespace.QName(
            "http://ec2.amazonaws.com/doc/2012-08-15/", "publicKeyMaterial"));

    if (localPublicKeyMaterial != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPublicKeyMaterial));
    } else {
      throw new org.apache.axis2.databinding.ADBException("publicKeyMaterial cannot be null!!");
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
  @Override
  public XMLStreamReader getPullParser(final QName qName) throws ADBException {
    final ArrayList<Serializable> elementList = new ArrayList<Serializable>();

    if (this.requestorIDTracker) {
      elementList.add(new QName("", "requestorID"));
      elementList.add(ConverterUtil.convertToString(this.requestorID));
    }

    if (this.requestorNSNameSequenceTracker) {
      elementList.add(
          new QName(
              "http://remotelabs.eng.uts.edu.au/rigmanagement",
              "OperationRequestTypeSequence_type0"));
      if (this.requestorNSNameSequence == null) {
        throw new ADBException("OperationRequestTypeSequence_type0 cannot be null!!");
      }
      elementList.add(this.requestorNSNameSequence);
    }

    if (this.requestorQNameTracker) {
      elementList.add(new QName("", "requestorQName"));
      if (this.requestorQName != null) {
        elementList.add(ConverterUtil.convertToString(this.requestorQName));
      } else {
        throw new ADBException("requestorQName cannot be null!!");
      }
    }

    return new ADBXMLStreamReaderImpl(qName, elementList.toArray(), new Object[0]);
  }
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    elementList.add(
        new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/", "productCode"));

    if (localProductCode != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProductCode));
    } else {
      throw new org.apache.axis2.databinding.ADBException("productCode cannot be null!!");
    }

    elementList.add(
        new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/", "instanceId"));

    if (localInstanceId != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localInstanceId));
    } else {
      throw new org.apache.axis2.databinding.ADBException("instanceId cannot be null!!");
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    if (localApplicationIdTracker) {
      elementList.add(
          new javax.xml.namespace.QName(
              "http://service.mgt.application.appfactory.carbon.wso2.org", "applicationId"));

      elementList.add(
          localApplicationId == null
              ? null
              : org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
                  localApplicationId));
    }
    if (localUserNameTracker) {
      elementList.add(
          new javax.xml.namespace.QName(
              "http://service.mgt.application.appfactory.carbon.wso2.org", "userName"));

      elementList.add(
          localUserName == null
              ? null
              : org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUserName));
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
Beispiel #6
0
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    if (localResourcePathTracker) {
      elementList.add(
          new javax.xml.namespace.QName(
              "http://services.resource.registry.carbon.wso2.org", "resourcePath"));

      elementList.add(
          localResourcePath == null
              ? null
              : org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
                  localResourcePath));
    }
    if (localContentTextTracker) {
      elementList.add(
          new javax.xml.namespace.QName(
              "http://services.resource.registry.carbon.wso2.org", "contentText"));

      elementList.add(
          localContentText == null
              ? null
              : org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localContentText));
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    elementList.add(
        new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "fieldNameOrPath"));

    if (localFieldNameOrPath != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFieldNameOrPath));
    } else {
      throw new org.apache.axis2.databinding.ADBException("fieldNameOrPath cannot be null!!");
    }

    elementList.add(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "value"));

    elementList.add(
        localValue == null
            ? null
            : org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localValue));

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
  /** method to handle Qnames */
  private void writeQName(
      javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter)
      throws javax.xml.stream.XMLStreamException {
    java.lang.String namespaceURI = qname.getNamespaceURI();
    if (namespaceURI != null) {
      java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
      if (prefix == null) {
        prefix = generatePrefix(namespaceURI);
        xmlWriter.writeNamespace(prefix, namespaceURI);
        xmlWriter.setPrefix(prefix, namespaceURI);
      }

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

    } else {
      xmlWriter.writeCharacters(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
    }
  }
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    if (localExternalSiteNameTracker) {
      elementList.add(
          new javax.xml.namespace.QName("http://api.eyeblaster.com/message", "ExternalSiteName"));

      elementList.add(
          localExternalSiteName == null
              ? null
              : org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
                  localExternalSiteName));
    }
    if (localMediaMindSiteNameTracker) {
      elementList.add(
          new javax.xml.namespace.QName("http://api.eyeblaster.com/message", "MediaMindSiteName"));

      elementList.add(
          localMediaMindSiteName == null
              ? null
              : org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
                  localMediaMindSiteName));
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
Beispiel #10
0
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    elementList.add(new javax.xml.namespace.QName("", "from"));

    if (localFrom != null) {
      elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFrom));
    } else {
      throw new org.apache.axis2.databinding.ADBException("from cannot be null!!");
    }

    elementList.add(new javax.xml.namespace.QName("", "to"));

    if (localTo != null) {
      elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTo));
    } else {
      throw new org.apache.axis2.databinding.ADBException("to cannot be null!!");
    }

    elementList.add(new javax.xml.namespace.QName("", "sig"));

    if (localSig != null) {
      elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSig));
    } else {
      throw new org.apache.axis2.databinding.ADBException("sig cannot be null!!");
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
Beispiel #11
0
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    elementList.add(new javax.xml.namespace.QName("", "code"));

    if (localCode != null) {
      elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCode));
    } else {
      throw new org.apache.axis2.databinding.ADBException("code cannot be null!!");
    }

    elementList.add(new javax.xml.namespace.QName("", "userID"));

    if (localUserID != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUserID));
    } else {
      throw new org.apache.axis2.databinding.ADBException("userID cannot be null!!");
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    elementList.add(
        new javax.xml.namespace.QName("http://s3.amazonaws.com/doc/2006-03-01/", "Name"));

    if (localName != null) {
      elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localName));
    } else {
      throw new org.apache.axis2.databinding.ADBException("Name cannot be null!!");
    }

    elementList.add(
        new javax.xml.namespace.QName("http://s3.amazonaws.com/doc/2006-03-01/", "CreationDate"));

    if (localCreationDate != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCreationDate));
    } else {
      throw new org.apache.axis2.databinding.ADBException("CreationDate cannot be null!!");
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
Beispiel #13
0
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    elementList.add(
        new javax.xml.namespace.QName("http://www.iec.ch/TC57/2008/schema/message", "UserID"));

    if (localUserID != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUserID));
    } else {
      throw new org.apache.axis2.databinding.ADBException("UserID cannot be null!!");
    }

    elementList.add(
        new javax.xml.namespace.QName(
            "http://www.iec.ch/TC57/2008/schema/message", "Organization"));

    if (localOrganization != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOrganization));
    } else {
      throw new org.apache.axis2.databinding.ADBException("Organization cannot be null!!");
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    attribList.add(
        new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema-instance", "type"));
    attribList.add(
        new javax.xml.namespace.QName("http://www.comverse.com", "greaterThanEqualsFilter"));
    if (localOrFilterGroupNameTracker) {
      elementList.add(new javax.xml.namespace.QName("", "orFilterGroupName"));

      if (localOrFilterGroupName != null) {
        elementList.add(
            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
                localOrFilterGroupName));
      } else {
        throw new org.apache.axis2.databinding.ADBException("orFilterGroupName cannot be null!!");
      }
    }
    if (localValueTracker) {
      elementList.add(new javax.xml.namespace.QName("", "value"));

      if (localValue != null) {
        elementList.add(
            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localValue));
      } else {
        throw new org.apache.axis2.databinding.ADBException("value cannot be null!!");
      }
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
Beispiel #15
0
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    elementList.add(new javax.xml.namespace.QName("http://tempuri.org/", "SensorType"));

    elementList.add(
        org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSensorType));

    elementList.add(new javax.xml.namespace.QName("http://tempuri.org/", "DataType"));

    elementList.add(
        org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDataType));
    if (localTimestampsTracker) {
      elementList.add(new javax.xml.namespace.QName("http://tempuri.org/", "Timestamps"));

      if (localTimestamps == null) {
        throw new org.apache.axis2.databinding.ADBException("Timestamps cannot be null!!");
      }
      elementList.add(localTimestamps);
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
/**
 * feedback request text answer type
 *
 * @author zhjdou 2009-11-5
 */
public class TextAnswerType {
  private String textAnswerType;
  public static final String _MULTIPLE = ConverterUtil.convertToString("MULTIPLE");
  public static final String _SINGLE = ConverterUtil.convertToString("SINGLE");
  public static final String _TEXT = ConverterUtil.convertToString("TEXT");

  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("TextAnswerType=[");
    sb.append("textAnswerType=").append(this.textAnswerType);
    sb.append("]");
    return sb.toString();
  }

  public TextAnswerType(String textAnswerType) {
    this.textAnswerType = textAnswerType;
  }

  public static TextAnswerType createTextAnswerType(String type) {
    return new TextAnswerType(type);
  }

  /** @return the textAnswerType */
  public String getTextAnswerType() {
    return textAnswerType;
  }

  /** @param textAnswerType the textAnswerType to set */
  public void setTextAnswerType(String textAnswerType) {
    this.textAnswerType = textAnswerType;
  }
}
Beispiel #17
0
  /** databinding method to get an XML representation of this object */
  @Override
  public javax.xml.stream.XMLStreamReader getPullParser(final javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    final java.util.ArrayList elementList = new java.util.ArrayList();
    final java.util.ArrayList attribList = new java.util.ArrayList();

    elementList.add(new javax.xml.namespace.QName("", "uniqueId"));

    if (localUniqueId != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUniqueId));
    } else {
      throw new org.apache.axis2.databinding.ADBException("uniqueId cannot be null!!");
    }

    elementList.add(new javax.xml.namespace.QName("", "resultLocalFile"));

    if (localResultLocalFile != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResultLocalFile));
    } else {
      throw new org.apache.axis2.databinding.ADBException("resultLocalFile cannot be null!!");
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
Beispiel #18
0
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    if (localStrTypPdfTracker) {
      elementList.add(
          new javax.xml.namespace.QName("http://www.bbva.cl/BBVA_GET_SEIC/", "strTypPdf"));

      if (localStrTypPdf != null) {
        elementList.add(
            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStrTypPdf));
      } else {
        throw new org.apache.axis2.databinding.ADBException("strTypPdf cannot be null!!");
      }
    }
    if (localStrNumOpeTracker) {
      elementList.add(
          new javax.xml.namespace.QName("http://www.bbva.cl/BBVA_GET_SEIC/", "strNumOpe"));

      if (localStrNumOpe != null) {
        elementList.add(
            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStrNumOpe));
      } else {
        throw new org.apache.axis2.databinding.ADBException("strNumOpe cannot be null!!");
      }
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    if (localTransportTypeTracker) {
      elementList.add(
          new javax.xml.namespace.QName("http://org.apache.axis2/xsd", "transportType"));

      elementList.add(
          localTransportType == null
              ? null
              : org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
                  localTransportType));
    }
    if (localTransportNameTracker) {
      elementList.add(
          new javax.xml.namespace.QName("http://org.apache.axis2/xsd", "transportName"));

      elementList.add(
          localTransportName == null
              ? null
              : org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
                  localTransportName));
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
Beispiel #20
0
 /** Create a Date object from the given date string. */
 public static Date getDate(String value) {
   /* if something goes wrong with converting the value to a date,
    * try with dateTime and get the date out it, this is because,
    * some service clients send a full date-time string for a date */
   try {
     return new Date(ConverterUtil.convertToDate(value).getTime());
   } catch (Exception e) {
     return new Date(ConverterUtil.convertToDateTime(value).getTimeInMillis());
   }
 }
Beispiel #21
0
  public void serialize(
      final javax.xml.namespace.QName parentQName,
      javax.xml.stream.XMLStreamWriter xmlWriter,
      boolean serializeType)
      throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException {

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

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

    if (serializeType) {

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

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

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

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

    if (localItemName != null) {

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

    xmlWriter.writeEndElement();
  }
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    elementList.add(
        new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/", "instancesSet"));

    if (localInstancesSet == null) {
      throw new org.apache.axis2.databinding.ADBException("instancesSet cannot be null!!");
    }
    elementList.add(localInstancesSet);
    if (localFilterSetTracker) {
      elementList.add(
          new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/", "filterSet"));

      if (localFilterSet == null) {
        throw new org.apache.axis2.databinding.ADBException("filterSet cannot be null!!");
      }
      elementList.add(localFilterSet);
    }
    if (localNextTokenTracker) {
      elementList.add(
          new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/", "nextToken"));

      if (localNextToken != null) {
        elementList.add(
            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNextToken));
      } else {
        throw new org.apache.axis2.databinding.ADBException("nextToken cannot be null!!");
      }
    }
    if (localMaxResultsTracker) {
      elementList.add(
          new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/", "maxResults"));

      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxResults));
    }
    if (localIncludeAllInstancesTracker) {
      elementList.add(
          new javax.xml.namespace.QName(
              "http://ec2.amazonaws.com/doc/2012-08-15/", "includeAllInstances"));

      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
              localIncludeAllInstances));
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    elementList.add(new javax.xml.namespace.QName("", "mimeType"));

    if (localMimeType != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMimeType));
    } else {
      throw new org.apache.axis2.databinding.ADBException("mimeType cannot be null!!");
    }

    elementList.add(new javax.xml.namespace.QName("", "fileName"));

    if (localFileName != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFileName));
    } else {
      throw new org.apache.axis2.databinding.ADBException("fileName cannot be null!!");
    }

    elementList.add(new javax.xml.namespace.QName("", "title"));

    if (localTitle != null) {
      elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTitle));
    } else {
      throw new org.apache.axis2.databinding.ADBException("title cannot be null!!");
    }

    elementList.add(new javax.xml.namespace.QName("", "description"));

    if (localDescription != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescription));
    } else {
      throw new org.apache.axis2.databinding.ADBException("description cannot be null!!");
    }

    elementList.add(new javax.xml.namespace.QName("", "creationDate"));

    if (localCreationDate != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCreationDate));
    } else {
      throw new org.apache.axis2.databinding.ADBException("creationDate cannot be null!!");
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
Beispiel #24
0
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    if (localSearchBaseTracker) {
      elementList.add(new javax.xml.namespace.QName("", "searchBase"));

      if (localSearchBase != null) {
        elementList.add(
            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSearchBase));
      } else {
        throw new org.apache.axis2.databinding.ADBException("searchBase cannot be null!!");
      }
    }
    if (localParameters != null) {
      for (int i = 0; i < localParameters.length; i++) {

        if (localParameters[i] != null) {
          elementList.add(new javax.xml.namespace.QName("", "Parameters"));
          elementList.add(localParameters[i]);
        } else {

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

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

    if (localReturns != null) {
      for (int i = 0; i < localReturns.length; i++) {

        if (localReturns[i] != null) {
          elementList.add(new javax.xml.namespace.QName("", "Returns"));
          elementList.add(
              org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReturns[i]));
        } else {

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

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

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    elementList.add(
        new javax.xml.namespace.QName(
            "http://ec2.amazonaws.com/doc/2012-08-15/", "AssociateAddressTypeChoice_type0"));

    if (localAssociateAddressTypeChoice_type0 == null) {
      throw new org.apache.axis2.databinding.ADBException(
          "AssociateAddressTypeChoice_type0 cannot be null!!");
    }
    elementList.add(localAssociateAddressTypeChoice_type0);

    elementList.add(
        new javax.xml.namespace.QName(
            "http://ec2.amazonaws.com/doc/2012-08-15/", "AssociateAddressTypeChoice_type1"));

    if (localAssociateAddressTypeChoice_type1 == null) {
      throw new org.apache.axis2.databinding.ADBException(
          "AssociateAddressTypeChoice_type1 cannot be null!!");
    }
    elementList.add(localAssociateAddressTypeChoice_type1);
    if (localPrivateIpAddressTracker) {
      elementList.add(
          new javax.xml.namespace.QName(
              "http://ec2.amazonaws.com/doc/2012-08-15/", "privateIpAddress"));

      if (localPrivateIpAddress != null) {
        elementList.add(
            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
                localPrivateIpAddress));
      } else {
        throw new org.apache.axis2.databinding.ADBException("privateIpAddress cannot be null!!");
      }
    }
    if (localAllowReassociationTracker) {
      elementList.add(
          new javax.xml.namespace.QName(
              "http://ec2.amazonaws.com/doc/2012-08-15/", "allowReassociation"));

      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
              localAllowReassociation));
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    if (localTicketTracker) {
      elementList.add(new javax.xml.namespace.QName("http://developer.intuit.com/", "ticket"));

      if (localTicket != null) {
        elementList.add(
            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTicket));
      } else {
        throw new org.apache.axis2.databinding.ADBException("ticket cannot be null!!");
      }
    }
    if (localResponseTracker) {
      elementList.add(new javax.xml.namespace.QName("http://developer.intuit.com/", "response"));

      if (localResponse != null) {
        elementList.add(
            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResponse));
      } else {
        throw new org.apache.axis2.databinding.ADBException("response cannot be null!!");
      }
    }
    if (localHresultTracker) {
      elementList.add(new javax.xml.namespace.QName("http://developer.intuit.com/", "hresult"));

      if (localHresult != null) {
        elementList.add(
            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHresult));
      } else {
        throw new org.apache.axis2.databinding.ADBException("hresult cannot be null!!");
      }
    }
    if (localMessageTracker) {
      elementList.add(new javax.xml.namespace.QName("http://developer.intuit.com/", "message"));

      if (localMessage != null) {
        elementList.add(
            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMessage));
      } else {
        throw new org.apache.axis2.databinding.ADBException("message cannot be null!!");
      }
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
Beispiel #27
0
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    elementList.add(new javax.xml.namespace.QName("", "message"));

    if (localMessage != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMessage));
    } else {
      throw new org.apache.axis2.databinding.ADBException("message cannot be null!!");
    }

    elementList.add(new javax.xml.namespace.QName("", "senderAddress"));

    if (localSenderAddress != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSenderAddress));
    } else {
      throw new org.apache.axis2.databinding.ADBException("senderAddress cannot be null!!");
    }

    elementList.add(new javax.xml.namespace.QName("", "smsServiceActivationNumber"));

    if (localSmsServiceActivationNumber != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
              localSmsServiceActivationNumber));
    } else {
      throw new org.apache.axis2.databinding.ADBException(
          "smsServiceActivationNumber cannot be null!!");
    }
    if (localDateTimeTracker) {
      elementList.add(new javax.xml.namespace.QName("", "dateTime"));

      if (localDateTime != null) {
        elementList.add(
            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDateTime));
      } else {
        throw new org.apache.axis2.databinding.ADBException("dateTime cannot be null!!");
      }
    }

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
Beispiel #28
0
    public static Asula fromString(java.lang.String value, java.lang.String namespaceURI) {
      Asula returnValue = new Asula();

      returnValue.setAsula(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value));

      return returnValue;
    }
  /** databinding method to get an XML representation of this object */
  public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
      throws org.apache.axis2.databinding.ADBException {

    java.util.ArrayList elementList = new java.util.ArrayList();
    java.util.ArrayList attribList = new java.util.ArrayList();

    elementList.add(
        new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2009-10-31/", "requestId"));

    if (localRequestId != null) {
      elementList.add(
          org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRequestId));
    } else {
      throw new org.apache.axis2.databinding.ADBException("requestId cannot be null!!");
    }

    elementList.add(
        new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2009-10-31/", "vpnGateway"));

    if (localVpnGateway == null) {
      throw new org.apache.axis2.databinding.ADBException("vpnGateway cannot be null!!");
    }
    elementList.add(localVpnGateway);

    return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
        qName, elementList.toArray(), attribList.toArray());
  }
Beispiel #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://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();
  }