public void serialize( final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory, org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter, boolean serializeType) throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { java.lang.String prefix = null; java.lang.String namespace = null; prefix = parentQName.getPrefix(); namespace = parentQName.getNamespaceURI(); if ((namespace != null) && (namespace.trim().length() > 0)) { java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); if (writerPrefix != null) { xmlWriter.writeStartElement(namespace, parentQName.getLocalPart()); } else { if (prefix == null) { prefix = generatePrefix(namespace); } xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } } else { xmlWriter.writeStartElement(parentQName.getLocalPart()); } if (serializeType) { java.lang.String namespacePrefix = registerPrefix(xmlWriter, "http://schemas.xmlsoap.org/soap/encoding/"); if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { writeAttribute( "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", namespacePrefix + ":dateTime", xmlWriter); } else { writeAttribute( "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "dateTime", xmlWriter); } } if (localDateTime == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("dateTime cannot be null!!"); } else { xmlWriter.writeCharacters( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDateTime)); } xmlWriter.writeEndElement(); }
public void serialize( final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory, org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter, boolean serializeType) throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { // 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 { // 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(); }
@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(); }
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 { 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(); }
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(); }
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 + ":RegisterImageType", xmlWriter); } else { writeAttribute( "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "RegisterImageType", xmlWriter); } } if (localImageLocationTracker) { 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, "imageLocation", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "imageLocation"); } } else { xmlWriter.writeStartElement("imageLocation"); } if (localImageLocation == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("imageLocation cannot be null!!"); } else { xmlWriter.writeCharacters(localImageLocation); } xmlWriter.writeEndElement(); } 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, "name", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "name"); } } else { xmlWriter.writeStartElement("name"); } if (localName == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("name cannot be null!!"); } else { xmlWriter.writeCharacters(localName); } xmlWriter.writeEndElement(); if (localDescriptionTracker) { 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, "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(); } if (localArchitectureTracker) { 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, "architecture", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "architecture"); } } else { xmlWriter.writeStartElement("architecture"); } if (localArchitecture == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("architecture cannot be null!!"); } else { xmlWriter.writeCharacters(localArchitecture); } xmlWriter.writeEndElement(); } if (localKernelIdTracker) { 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, "kernelId", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "kernelId"); } } else { xmlWriter.writeStartElement("kernelId"); } if (localKernelId == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("kernelId cannot be null!!"); } else { xmlWriter.writeCharacters(localKernelId); } xmlWriter.writeEndElement(); } if (localRamdiskIdTracker) { 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, "ramdiskId", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "ramdiskId"); } } else { xmlWriter.writeStartElement("ramdiskId"); } if (localRamdiskId == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("ramdiskId cannot be null!!"); } else { xmlWriter.writeCharacters(localRamdiskId); } xmlWriter.writeEndElement(); } if (localRootDeviceNameTracker) { 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, "rootDeviceName", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "rootDeviceName"); } } else { xmlWriter.writeStartElement("rootDeviceName"); } if (localRootDeviceName == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("rootDeviceName cannot be null!!"); } else { xmlWriter.writeCharacters(localRootDeviceName); } xmlWriter.writeEndElement(); } if (localBlockDeviceMappingTracker) { if (localBlockDeviceMapping == null) { throw new org.apache.axis2.databinding.ADBException("blockDeviceMapping cannot be null!!"); } localBlockDeviceMapping.serialize( new javax.xml.namespace.QName( "http://ec2.amazonaws.com/doc/2012-08-15/", "blockDeviceMapping"), 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://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(); }
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://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(); }
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(); }
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(); }
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(); }
@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://127.0.0.1/"); if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { writeAttribute( "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", namespacePrefix + ":SetSMTPInfo", xmlWriter); } else { writeAttribute( "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "SetSMTPInfo", xmlWriter); } } if (localAuthTracker) { if (localAuth == null) { throw new org.apache.axis2.databinding.ADBException("auth cannot be null!!"); } localAuth.serialize( new javax.xml.namespace.QName("http://127.0.0.1/", "auth"), factory, xmlWriter); } if (localSMTPServerTracker) { namespace = "http://127.0.0.1/"; if (!namespace.equals("")) { prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); xmlWriter.writeStartElement(prefix, "SMTPServer", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "SMTPServer"); } } else { xmlWriter.writeStartElement("SMTPServer"); } if (localSMTPServer == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("SMTPServer cannot be null!!"); } else { xmlWriter.writeCharacters(localSMTPServer); } xmlWriter.writeEndElement(); } if (localSMTPUsernameTracker) { namespace = "http://127.0.0.1/"; if (!namespace.equals("")) { prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); xmlWriter.writeStartElement(prefix, "SMTPUsername", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "SMTPUsername"); } } else { xmlWriter.writeStartElement("SMTPUsername"); } if (localSMTPUsername == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("SMTPUsername cannot be null!!"); } else { xmlWriter.writeCharacters(localSMTPUsername); } xmlWriter.writeEndElement(); } if (localSMTPPasswordTracker) { namespace = "http://127.0.0.1/"; if (!namespace.equals("")) { prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); xmlWriter.writeStartElement(prefix, "SMTPPassword", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "SMTPPassword"); } } else { xmlWriter.writeStartElement("SMTPPassword"); } if (localSMTPPassword == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("SMTPPassword cannot be null!!"); } else { xmlWriter.writeCharacters(localSMTPPassword); } xmlWriter.writeEndElement(); } if (localSMTPPortTracker) { namespace = "http://127.0.0.1/"; if (!namespace.equals("")) { prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); xmlWriter.writeStartElement(prefix, "SMTPPort", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "SMTPPort"); } } else { xmlWriter.writeStartElement("SMTPPort"); } if (localSMTPPort == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("SMTPPort cannot be null!!"); } else { xmlWriter.writeCharacters(localSMTPPort); } xmlWriter.writeEndElement(); } if (localSMTPFromEmailTracker) { namespace = "http://127.0.0.1/"; if (!namespace.equals("")) { prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); xmlWriter.writeStartElement(prefix, "SMTPFromEmail", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "SMTPFromEmail"); } } else { xmlWriter.writeStartElement("SMTPFromEmail"); } if (localSMTPFromEmail == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("SMTPFromEmail cannot be null!!"); } else { xmlWriter.writeCharacters(localSMTPFromEmail); } xmlWriter.writeEndElement(); } xmlWriter.writeEndElement(); }
@Override public void serialize( final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory, final org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter, final 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)) { final 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) { final java.lang.String namespacePrefix = registerPrefix(xmlWriter, "http://test.plugin.bps.de/"); if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { writeAttribute( "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", namespacePrefix + ":saveResultLocal", xmlWriter); } else { writeAttribute( "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "saveResultLocal", xmlWriter); } } namespace = ""; if (!namespace.equals("")) { prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); xmlWriter.writeStartElement(prefix, "uniqueId", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "uniqueId"); } } else { xmlWriter.writeStartElement("uniqueId"); } if (localUniqueId == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("uniqueId cannot be null!!"); } else { xmlWriter.writeCharacters(localUniqueId); } xmlWriter.writeEndElement(); namespace = ""; if (!namespace.equals("")) { prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); xmlWriter.writeStartElement(prefix, "resultLocalFile", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "resultLocalFile"); } } else { xmlWriter.writeStartElement("resultLocalFile"); } if (localResultLocalFile == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("resultLocalFile cannot be null!!"); } else { xmlWriter.writeCharacters(localResultLocalFile); } 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()); } 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 + ":GetHistoryPerformedByFilter", xmlWriter); } else { writeAttribute( "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "GetHistoryPerformedByFilter", xmlWriter); } namespace = "http://api.eyeblaster.com/V1/DataContracts"; if (!namespace.equals("")) { prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); xmlWriter.writeStartElement(prefix, "PerformedBy", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "PerformedBy"); } } else { xmlWriter.writeStartElement("PerformedBy"); } if (localPerformedBy == null) { // write the nil attribute writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter); } else { xmlWriter.writeCharacters(localPerformedBy); } 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(); }
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 + ":updateTextContent", xmlWriter); } else { writeAttribute( "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "updateTextContent", xmlWriter); } } if (localResourcePathTracker) { namespace = "http://services.resource.registry.carbon.wso2.org"; if (!namespace.equals("")) { prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); xmlWriter.writeStartElement(prefix, "resourcePath", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "resourcePath"); } } else { xmlWriter.writeStartElement("resourcePath"); } if (localResourcePath == null) { // write the nil attribute writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter); } else { xmlWriter.writeCharacters(localResourcePath); } xmlWriter.writeEndElement(); } if (localContentTextTracker) { namespace = "http://services.resource.registry.carbon.wso2.org"; if (!namespace.equals("")) { prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); xmlWriter.writeStartElement(prefix, "contentText", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "contentText"); } } else { xmlWriter.writeStartElement("contentText"); } if (localContentText == null) { // write the nil attribute writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter); } else { xmlWriter.writeCharacters(localContentText); } 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://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(); }
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(); } }
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://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 + ":CreateSnapshotResponseType", xmlWriter); } else { writeAttribute( "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "CreateSnapshotResponseType", 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, "requestId", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "requestId"); } } else { xmlWriter.writeStartElement("requestId"); } if (localRequestId == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("requestId cannot be null!!"); } else { xmlWriter.writeCharacters(localRequestId); } xmlWriter.writeEndElement(); 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, "snapshotId", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "snapshotId"); } } else { xmlWriter.writeStartElement("snapshotId"); } if (localSnapshotId == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("snapshotId cannot be null!!"); } else { xmlWriter.writeCharacters(localSnapshotId); } xmlWriter.writeEndElement(); 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, "volumeId", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "volumeId"); } } else { xmlWriter.writeStartElement("volumeId"); } if (localVolumeId == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("volumeId cannot be null!!"); } else { xmlWriter.writeCharacters(localVolumeId); } xmlWriter.writeEndElement(); 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, "status", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "status"); } } else { xmlWriter.writeStartElement("status"); } if (localStatus == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("status cannot be null!!"); } else { xmlWriter.writeCharacters(localStatus); } xmlWriter.writeEndElement(); 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, "startTime", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "startTime"); } } else { xmlWriter.writeStartElement("startTime"); } if (localStartTime == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("startTime cannot be null!!"); } else { xmlWriter.writeCharacters( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStartTime)); } xmlWriter.writeEndElement(); 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, "progress", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "progress"); } } else { xmlWriter.writeStartElement("progress"); } if (localProgress == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("progress cannot be null!!"); } else { xmlWriter.writeCharacters(localProgress); } xmlWriter.writeEndElement(); 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, "ownerId", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "ownerId"); } } else { xmlWriter.writeStartElement("ownerId"); } if (localOwnerId == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("ownerId cannot be null!!"); } else { xmlWriter.writeCharacters(localOwnerId); } xmlWriter.writeEndElement(); 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, "volumeSize", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "volumeSize"); } } else { xmlWriter.writeStartElement("volumeSize"); } if (localVolumeSize == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("volumeSize cannot be null!!"); } else { xmlWriter.writeCharacters(localVolumeSize); } xmlWriter.writeEndElement(); if (localDescriptionTracker) { 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, "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(); } 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.jinnymus.org/jira_transport/"); if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { writeAttribute( "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", namespacePrefix + ":uploadResponseToJira", xmlWriter); } else { writeAttribute( "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "uploadResponseToJira", 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 == java.lang.Integer.MIN_VALUE) { throw new org.apache.axis2.databinding.ADBException("code cannot be null!!"); } else { xmlWriter.writeCharacters( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCode)); } xmlWriter.writeEndElement(); if (localErrorTracker) { namespace = ""; if (!namespace.equals("")) { prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); xmlWriter.writeStartElement(prefix, "error", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "error"); } } else { xmlWriter.writeStartElement("error"); } if (localError == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("error cannot be null!!"); } else { xmlWriter.writeCharacters(localError); } 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://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://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; 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://bpms.intalio.org/LdapHelper/"); if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { writeAttribute( "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", namespacePrefix + ":Query", xmlWriter); } else { writeAttribute( "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Query", xmlWriter); } } if (localSearchBaseTracker) { namespace = ""; if (!namespace.equals("")) { prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); xmlWriter.writeStartElement(prefix, "searchBase", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, "searchBase"); } } else { xmlWriter.writeStartElement("searchBase"); } if (localSearchBase == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("searchBase cannot be null!!"); } else { xmlWriter.writeCharacters(localSearchBase); } xmlWriter.writeEndElement(); } if (localParameters != null) { for (int i = 0; i < localParameters.length; i++) { if (localParameters[i] != null) { localParameters[i].serialize( new javax.xml.namespace.QName("", "Parameters"), factory, xmlWriter); } 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) { namespace = ""; boolean emptyNamespace = namespace == null || namespace.length() == 0; prefix = emptyNamespace ? null : xmlWriter.getPrefix(namespace); for (int i = 0; i < localReturns.length; i++) { if (localReturns[i] != null) { if (!emptyNamespace) { if (prefix == null) { java.lang.String prefix2 = generatePrefix(namespace); xmlWriter.writeStartElement(prefix2, "Returns", namespace); xmlWriter.writeNamespace(prefix2, namespace); xmlWriter.setPrefix(prefix2, namespace); } else { xmlWriter.writeStartElement(namespace, "Returns"); } } else { xmlWriter.writeStartElement("Returns"); } xmlWriter.writeCharacters( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReturns[i])); xmlWriter.writeEndElement(); } else { throw new org.apache.axis2.databinding.ADBException("Returns cannot be null!!"); } } } else { throw new org.apache.axis2.databinding.ADBException("Returns 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://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(); }
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(); }